@colijnit/transactionapi 1.1.22 → 1.1.25
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/document-object-name.enum.d.ts +3 -0
- package/build/enum/document-object-name.enum.js +4 -0
- package/build/enum/financial-object-name.enum.d.ts +3 -0
- package/build/enum/financial-object-name.enum.js +4 -0
- package/build/enum/master-data-object-name.enum.d.ts +1 -0
- package/build/enum/master-data-object-name.enum.js +1 -0
- package/build/enum/module-name.enum.d.ts +4 -1
- package/build/enum/module-name.enum.js +3 -0
- package/build/enum/payment-method.enum.d.ts +4 -0
- package/build/enum/payment-method.enum.js +5 -0
- package/build/enum/quantity-in-historic-state.enum.d.ts +5 -0
- package/build/enum/quantity-in-historic-state.enum.js +6 -0
- package/build/enum/transaction-method.enum.d.ts +2 -1
- package/build/enum/transaction-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +9 -2
- package/build/model/admin-cash-register-group.bo.d.ts +7 -0
- package/build/model/admin-cash-register-group.bo.js +22 -0
- package/build/model/admin-payment-method.bo.d.ts +7 -0
- package/build/model/admin-payment-method.bo.js +22 -0
- package/build/model/cash-register-group.bo.d.ts +14 -0
- package/build/model/cash-register-group.bo.js +39 -0
- package/build/model/change-header-transaction-definitive-request.d.ts +4 -0
- package/build/model/change-header-transaction-definitive-request.js +6 -0
- package/build/model/co-document-right.d.ts +2 -2
- package/build/model/co-document-right.js +1 -1
- package/build/model/co-document.d.ts +8 -8
- package/build/model/co-document.js +13 -13
- package/build/model/create-outstanding-entry-request.d.ts +4 -0
- package/build/model/create-outstanding-entry-request.js +6 -0
- package/build/model/payment-method.bo.d.ts +31 -0
- package/build/model/payment-method.bo.js +51 -0
- package/build/model/payment-request.d.ts +7 -0
- package/build/model/payment-request.js +6 -0
- package/build/model/purchase-order-line.bo.d.ts +3 -3
- package/build/model/purchase-order-line.bo.js +2 -2
- package/build/model/purchase-order.bo.d.ts +2 -2
- package/build/model/purchase-order.bo.js +1 -1
- package/build/model/transaction-search-view.bo.d.ts +3 -1
- package/build/model/transaction-search-view.bo.js +8 -0
- package/build/transaction-auth.d.ts +9 -2
- package/build/transaction-auth.js +42 -0
- package/build/transaction-public.d.ts +9 -2
- package/build/transaction-public.js +29 -13
- package/build/transaction.d.ts +9 -2
- package/build/transaction.js +12 -0
- package/build/transaction.unit.test.js +29 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export var MasterDataObjectName;
|
|
|
14
14
|
MasterDataObjectName["WareHouse"] = "WareHouse";
|
|
15
15
|
MasterDataObjectName["CustomerGroup"] = "CustomerGroup";
|
|
16
16
|
MasterDataObjectName["CoMultipleValue"] = "CoMultipleValue";
|
|
17
|
+
MasterDataObjectName["PaymentMethod"] = "PaymentMethod";
|
|
17
18
|
MasterDataObjectName["PriceList"] = "PriceList";
|
|
18
19
|
MasterDataObjectName["SalesPerson"] = "SalesPerson";
|
|
19
20
|
MasterDataObjectName["Vat"] = "Vat";
|
|
@@ -11,4 +11,7 @@ export var ModuleName;
|
|
|
11
11
|
ModuleName["HomeDecorator"] = "HomeDecorator";
|
|
12
12
|
ModuleName["Transaction"] = "Transaction";
|
|
13
13
|
ModuleName["Relation"] = "Rel_man";
|
|
14
|
+
ModuleName["Accounting"] = "accounting";
|
|
15
|
+
ModuleName["Financial"] = "Financial";
|
|
16
|
+
ModuleName["Document"] = "Document";
|
|
14
17
|
})(ModuleName || (ModuleName = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var QuantityInHistoricState;
|
|
2
|
+
(function (QuantityInHistoricState) {
|
|
3
|
+
QuantityInHistoricState[QuantityInHistoricState["Nothing"] = 1] = "Nothing";
|
|
4
|
+
QuantityInHistoricState[QuantityInHistoricState["Partly"] = 2] = "Partly";
|
|
5
|
+
QuantityInHistoricState[QuantityInHistoricState["Fully"] = 3] = "Fully";
|
|
6
|
+
})(QuantityInHistoricState || (QuantityInHistoricState = {}));
|
|
@@ -31,5 +31,6 @@ export declare enum TransactionMethod {
|
|
|
31
31
|
GetGoodsReceiptStatusWithHistory = "getGoodsReceiptStatusWithHistory",
|
|
32
32
|
GetGoodsReceiptStatus = "getGoodsReceiptStatus",
|
|
33
33
|
ReceiveGoodsForPurchaseOrder = "receiveGoodsForPurchaseOrder",
|
|
34
|
-
ReceiveGoodsForPurchaseOrderCorrection = "receiveGoodsForPurchaseOrderCorrection"
|
|
34
|
+
ReceiveGoodsForPurchaseOrderCorrection = "receiveGoodsForPurchaseOrderCorrection",
|
|
35
|
+
ChangeHeaderTransactionDefinitive = "changeHeaderTransactionDefinitive"
|
|
35
36
|
}
|
|
@@ -33,4 +33,5 @@ export var TransactionMethod;
|
|
|
33
33
|
TransactionMethod["GetGoodsReceiptStatus"] = "getGoodsReceiptStatus";
|
|
34
34
|
TransactionMethod["ReceiveGoodsForPurchaseOrder"] = "receiveGoodsForPurchaseOrder";
|
|
35
35
|
TransactionMethod["ReceiveGoodsForPurchaseOrderCorrection"] = "receiveGoodsForPurchaseOrderCorrection";
|
|
36
|
+
TransactionMethod["ChangeHeaderTransactionDefinitive"] = "changeHeaderTransactionDefinitive";
|
|
36
37
|
})(TransactionMethod || (TransactionMethod = {}));
|
|
@@ -24,8 +24,11 @@ import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supp
|
|
|
24
24
|
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
25
25
|
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
26
26
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
27
|
+
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
28
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-purchase-order-request.bo';
|
|
29
|
+
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
30
|
+
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
31
|
+
import { PaymentRequest } from './model/payment-request';
|
|
29
32
|
export declare abstract class IoneApiTransaction {
|
|
30
33
|
readonly showLoader: Subject<boolean>;
|
|
31
34
|
readonly connectionAborted: Subject<void>;
|
|
@@ -80,6 +83,9 @@ export declare abstract class IoneApiTransaction {
|
|
|
80
83
|
abstract getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
81
84
|
abstract getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
82
85
|
abstract setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
86
|
+
abstract createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
87
|
+
abstract registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
88
|
+
abstract getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
83
89
|
abstract changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
84
90
|
abstract changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
85
91
|
abstract changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
@@ -95,6 +101,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
95
101
|
abstract changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
96
102
|
abstract changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
97
103
|
abstract changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
104
|
+
abstract changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
98
105
|
abstract getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
99
106
|
abstract getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
100
107
|
abstract receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import { BusinessObject } from './business-object';
|
|
15
|
+
var AdminCashRegisterGroup = (function (_super) {
|
|
16
|
+
__extends(AdminCashRegisterGroup, _super);
|
|
17
|
+
function AdminCashRegisterGroup() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return AdminCashRegisterGroup;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { AdminCashRegisterGroup };
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import { BusinessObject } from './business-object';
|
|
15
|
+
var AdminPaymentMethod = (function (_super) {
|
|
16
|
+
__extends(AdminPaymentMethod, _super);
|
|
17
|
+
function AdminPaymentMethod() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return AdminPaymentMethod;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { AdminPaymentMethod };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { AdminCashRegisterGroup } from './admin-cash-register-group.bo';
|
|
3
|
+
export declare class CashRegisterGroup extends BusinessObject {
|
|
4
|
+
id: number;
|
|
5
|
+
description: string;
|
|
6
|
+
branchNo: string;
|
|
7
|
+
warehouse: number;
|
|
8
|
+
location: string;
|
|
9
|
+
returnWarehouse: number;
|
|
10
|
+
returnLocation: string;
|
|
11
|
+
fifo: boolean;
|
|
12
|
+
currentAdmin: number;
|
|
13
|
+
adminLinks: AdminCashRegisterGroup[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { ComplexArray } from '../factory/decorators/complex-array.decorator';
|
|
25
|
+
import { AdminCashRegisterGroup } from './admin-cash-register-group.bo';
|
|
26
|
+
var CashRegisterGroup = (function (_super) {
|
|
27
|
+
__extends(CashRegisterGroup, _super);
|
|
28
|
+
function CashRegisterGroup() {
|
|
29
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
_this.adminLinks = [];
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
ComplexArray(AdminCashRegisterGroup),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], CashRegisterGroup.prototype, "adminLinks", void 0);
|
|
37
|
+
return CashRegisterGroup;
|
|
38
|
+
}(BusinessObject));
|
|
39
|
+
export { CashRegisterGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectRightType } from
|
|
2
|
-
import { BusinessObject } from
|
|
1
|
+
import { ObjectRightType } from '../enum/refcode/object-right-type.enum';
|
|
2
|
+
import { BusinessObject } from './business-object';
|
|
3
3
|
export declare class CoDocumentRight extends BusinessObject {
|
|
4
4
|
userGroupId: number;
|
|
5
5
|
documentId: number;
|
|
@@ -11,7 +11,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
11
11
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
12
|
};
|
|
13
13
|
})();
|
|
14
|
-
import { BusinessObject } from
|
|
14
|
+
import { BusinessObject } from './business-object';
|
|
15
15
|
var CoDocumentRight = (function (_super) {
|
|
16
16
|
__extends(CoDocumentRight, _super);
|
|
17
17
|
function CoDocumentRight() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { Tag } from
|
|
3
|
-
import { CoDocumentType } from
|
|
4
|
-
import { FileType } from
|
|
5
|
-
import { ObjectRightType } from
|
|
6
|
-
import { CoDocumentRight } from
|
|
7
|
-
import { ArticleSeoValue } from
|
|
8
|
-
import { FileTypeInternal } from
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { Tag } from './tag';
|
|
3
|
+
import { CoDocumentType } from '../enum/refcode/co-document-type.enum';
|
|
4
|
+
import { FileType } from '../enum/refcode/file-type.enum';
|
|
5
|
+
import { ObjectRightType } from '../enum/refcode/object-right-type.enum';
|
|
6
|
+
import { CoDocumentRight } from './co-document-right';
|
|
7
|
+
import { ArticleSeoValue } from './article-seo-value';
|
|
8
|
+
import { FileTypeInternal } from '../enum/refcode/file-type-internal.enum';
|
|
9
9
|
import { Subject } from 'rxjs';
|
|
10
10
|
export declare class CoDocument extends BusinessObject {
|
|
11
11
|
set documentId(value: number);
|
|
@@ -20,19 +20,19 @@ 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 { BooleanText } from
|
|
25
|
-
import { ComplexArray } from
|
|
26
|
-
import { Tag } from
|
|
27
|
-
import { NoDbField } from
|
|
28
|
-
import { FileUtils } from
|
|
29
|
-
import { FileType } from
|
|
30
|
-
import { ObjectRightType } from
|
|
31
|
-
import { CoDocumentRight } from
|
|
32
|
-
import { ArticleSeoValue } from
|
|
33
|
-
import { FileTypeInternal } from
|
|
34
|
-
import { DbFieldAlias } from
|
|
35
|
-
import { DateField } from
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { BooleanText } from '../factory/decorators/boolean.decorator';
|
|
25
|
+
import { ComplexArray } from '../factory/decorators/complex-array.decorator';
|
|
26
|
+
import { Tag } from './tag';
|
|
27
|
+
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
28
|
+
import { FileUtils } from '../utils/file-utils';
|
|
29
|
+
import { FileType } from '../enum/refcode/file-type.enum';
|
|
30
|
+
import { ObjectRightType } from '../enum/refcode/object-right-type.enum';
|
|
31
|
+
import { CoDocumentRight } from './co-document-right';
|
|
32
|
+
import { ArticleSeoValue } from './article-seo-value';
|
|
33
|
+
import { FileTypeInternal } from '../enum/refcode/file-type-internal.enum';
|
|
34
|
+
import { DbFieldAlias } from '../factory/decorators/db-field-alias.decorator';
|
|
35
|
+
import { DateField } from '../factory/decorators/date-field.decorator';
|
|
36
36
|
import { Subject } from 'rxjs';
|
|
37
37
|
var CoDocument = (function (_super) {
|
|
38
38
|
__extends(CoDocument, _super);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { CoDocument } from './co-document';
|
|
3
|
+
import { AdminPaymentMethod } from './admin-payment-method.bo';
|
|
4
|
+
import { CashRegisterGroup } from './cash-register-group.bo';
|
|
5
|
+
export declare class PaymentMethod extends BusinessObject {
|
|
6
|
+
code: string;
|
|
7
|
+
description: string;
|
|
8
|
+
bankAccountMandatory: boolean;
|
|
9
|
+
bankAccountMandatoryYesNo: string;
|
|
10
|
+
paymentType: string;
|
|
11
|
+
openCashDrawer: boolean;
|
|
12
|
+
pinTerminal: boolean;
|
|
13
|
+
paymentMoneyBack: boolean;
|
|
14
|
+
expenseMoneyBack: boolean;
|
|
15
|
+
skimming: boolean;
|
|
16
|
+
inCashDrawer: boolean;
|
|
17
|
+
cash: boolean;
|
|
18
|
+
roundUp: boolean;
|
|
19
|
+
roundUpUnit: number;
|
|
20
|
+
roundUpType: string;
|
|
21
|
+
pinTerminalNr: number;
|
|
22
|
+
type: number;
|
|
23
|
+
referenceNeeded: string;
|
|
24
|
+
cardNr: boolean;
|
|
25
|
+
externalSourceId: number;
|
|
26
|
+
voucher: boolean;
|
|
27
|
+
pspGateway: string;
|
|
28
|
+
adminLinks: AdminPaymentMethod[];
|
|
29
|
+
documents: CoDocument[];
|
|
30
|
+
posGroups: CashRegisterGroup[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ComplexArray } from '../factory/decorators/complex-array.decorator';
|
|
25
|
+
import { CoDocument } from './co-document';
|
|
26
|
+
import { AdminPaymentMethod } from './admin-payment-method.bo';
|
|
27
|
+
import { CashRegisterGroup } from './cash-register-group.bo';
|
|
28
|
+
var PaymentMethod = (function (_super) {
|
|
29
|
+
__extends(PaymentMethod, _super);
|
|
30
|
+
function PaymentMethod() {
|
|
31
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
+
_this.adminLinks = [];
|
|
33
|
+
_this.documents = [];
|
|
34
|
+
_this.posGroups = [];
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
ComplexArray(AdminPaymentMethod),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], PaymentMethod.prototype, "adminLinks", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ComplexArray(CoDocument),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], PaymentMethod.prototype, "documents", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
ComplexArray(CashRegisterGroup),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], PaymentMethod.prototype, "posGroups", void 0);
|
|
49
|
+
return PaymentMethod;
|
|
50
|
+
}(BusinessObject));
|
|
51
|
+
export { PaymentMethod };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { AcceptanceLine } from
|
|
3
|
-
import { AcceptanceContainer } from
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { AcceptanceLine } from './acceptance-line.bo';
|
|
3
|
+
import { AcceptanceContainer } from './acceptance-container.bo';
|
|
4
4
|
export declare class PurchaseOrderLine extends BusinessObject {
|
|
5
5
|
transId: number;
|
|
6
6
|
lineNr: number;
|
|
@@ -20,8 +20,8 @@ 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
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { DateField } from '../factory/decorators/date-field.decorator';
|
|
25
25
|
var PurchaseOrderLine = (function (_super) {
|
|
26
26
|
__extends(PurchaseOrderLine, _super);
|
|
27
27
|
function PurchaseOrderLine() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { PurchaseOrderLine } from
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { PurchaseOrderLine } from './purchase-order-line.bo';
|
|
3
3
|
export declare class PurchaseOrder extends BusinessObject {
|
|
4
4
|
actionKind: string;
|
|
5
5
|
transId: number;
|
|
@@ -11,7 +11,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
11
11
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
12
|
};
|
|
13
13
|
})();
|
|
14
|
-
import { BusinessObject } from
|
|
14
|
+
import { BusinessObject } from './business-object';
|
|
15
15
|
var PurchaseOrder = (function (_super) {
|
|
16
16
|
__extends(PurchaseOrder, _super);
|
|
17
17
|
function PurchaseOrder() {
|
|
@@ -27,6 +27,7 @@ export declare class TransactionSearchView extends BusinessObject {
|
|
|
27
27
|
servicePriority: PriorityType;
|
|
28
28
|
timeToFirstResponse: number;
|
|
29
29
|
execName: string;
|
|
30
|
+
executionDate: Date;
|
|
30
31
|
execImage: CoDocument;
|
|
31
32
|
assProduct: string;
|
|
32
33
|
assProductType: string;
|
|
@@ -35,7 +36,6 @@ export declare class TransactionSearchView extends BusinessObject {
|
|
|
35
36
|
paused: boolean;
|
|
36
37
|
sourceGoodId: number;
|
|
37
38
|
sourceDocId: number;
|
|
38
|
-
createdBy: string;
|
|
39
39
|
customerResponse: string;
|
|
40
40
|
unreadResponse: boolean;
|
|
41
41
|
allowPartialDelivery: boolean;
|
|
@@ -51,6 +51,8 @@ export declare class TransactionSearchView extends BusinessObject {
|
|
|
51
51
|
levelSalesDeliveryConfirmation: number;
|
|
52
52
|
transactionMutationDate: Date;
|
|
53
53
|
invoiceSalesTransId: number;
|
|
54
|
+
totalPriceVat: number;
|
|
55
|
+
preferredDeliveryDate: Date;
|
|
54
56
|
get closedAsString(): string;
|
|
55
57
|
get statusOfSalesOrder(): string;
|
|
56
58
|
get isDefinitiveDate(): boolean;
|
|
@@ -107,6 +107,10 @@ var TransactionSearchView = (function (_super) {
|
|
|
107
107
|
ComplexField(PriorityType),
|
|
108
108
|
__metadata("design:type", Number)
|
|
109
109
|
], TransactionSearchView.prototype, "servicePriority", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
DateField(),
|
|
112
|
+
__metadata("design:type", Date)
|
|
113
|
+
], TransactionSearchView.prototype, "executionDate", void 0);
|
|
110
114
|
__decorate([
|
|
111
115
|
ComplexField(CoDocument),
|
|
112
116
|
__metadata("design:type", CoDocument)
|
|
@@ -135,6 +139,10 @@ var TransactionSearchView = (function (_super) {
|
|
|
135
139
|
DateField(),
|
|
136
140
|
__metadata("design:type", Date)
|
|
137
141
|
], TransactionSearchView.prototype, "transactionMutationDate", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
DateField(),
|
|
144
|
+
__metadata("design:type", Date)
|
|
145
|
+
], TransactionSearchView.prototype, "preferredDeliveryDate", void 0);
|
|
138
146
|
return TransactionSearchView;
|
|
139
147
|
}(BusinessObject));
|
|
140
148
|
export { TransactionSearchView };
|
|
@@ -23,8 +23,11 @@ import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supp
|
|
|
23
23
|
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
24
24
|
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
25
25
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
26
|
-
import { ReceiveGoodsForPurchaseOrderRequest } from
|
|
27
|
-
import {
|
|
26
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-purchase-order-request.bo';
|
|
27
|
+
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
28
|
+
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
|
+
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
|
+
import { PaymentRequest } from './model/payment-request';
|
|
28
31
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
29
32
|
private _boSerializer;
|
|
30
33
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -75,6 +78,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
75
78
|
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
76
79
|
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
77
80
|
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
81
|
+
changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
78
82
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
79
83
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
80
84
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
@@ -88,6 +92,9 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
88
92
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
89
93
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
90
94
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
95
|
+
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
96
|
+
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
97
|
+
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
91
98
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
92
99
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
93
100
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
@@ -67,6 +67,7 @@ import { BusinessObjectSerializerService } from './service/business-object-seria
|
|
|
67
67
|
import { TransactionObjectName } from './enum/transaction-object-name.enum';
|
|
68
68
|
import { TagObjectName } from './enum/tag-object-name.enum';
|
|
69
69
|
import { TagOperationName } from './enum/tag-operation-name.enum';
|
|
70
|
+
import { PaymentMethod } from './enum/payment-method.enum';
|
|
70
71
|
var TransactionAuth = (function (_super) {
|
|
71
72
|
__extends(TransactionAuth, _super);
|
|
72
73
|
function TransactionAuth() {
|
|
@@ -515,6 +516,15 @@ var TransactionAuth = (function (_super) {
|
|
|
515
516
|
};
|
|
516
517
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
517
518
|
};
|
|
519
|
+
TransactionAuth.prototype.changeHeaderTransactionDefinitive = function (request) {
|
|
520
|
+
var data = {
|
|
521
|
+
moduleName: ModuleName.Transaction,
|
|
522
|
+
methodName: TransactionMethod.ChangeHeaderTransactionDefinitive,
|
|
523
|
+
parameterValues: request,
|
|
524
|
+
refCursorAsArray: true,
|
|
525
|
+
};
|
|
526
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
527
|
+
};
|
|
518
528
|
TransactionAuth.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
519
529
|
var data = {
|
|
520
530
|
moduleName: ModuleName.Transaction,
|
|
@@ -662,6 +672,38 @@ var TransactionAuth = (function (_super) {
|
|
|
662
672
|
};
|
|
663
673
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
664
674
|
};
|
|
675
|
+
TransactionAuth.prototype.createOutstandingEntry = function (request) {
|
|
676
|
+
var params = {
|
|
677
|
+
transUUID: request.transUUID,
|
|
678
|
+
amount: request.amount
|
|
679
|
+
};
|
|
680
|
+
var data = {
|
|
681
|
+
moduleName: ModuleName.Accounting,
|
|
682
|
+
methodName: PaymentMethod.CreateOutstandingEntry,
|
|
683
|
+
parameterValues: params,
|
|
684
|
+
refCursorAsArray: true
|
|
685
|
+
};
|
|
686
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
687
|
+
};
|
|
688
|
+
TransactionAuth.prototype.registerSalesOrderPayment = function (request) {
|
|
689
|
+
var params = {
|
|
690
|
+
transUUID: request.transUUID,
|
|
691
|
+
amount: request.amount,
|
|
692
|
+
currencyCode: request.currencyCode,
|
|
693
|
+
paymentMethodCode: request.paymentMethodCode,
|
|
694
|
+
cashRegisterGroupId: request.cashRegisterGroupId
|
|
695
|
+
};
|
|
696
|
+
var data = {
|
|
697
|
+
moduleName: ModuleName.Accounting,
|
|
698
|
+
methodName: PaymentMethod.RegisterSalesOrderPayment,
|
|
699
|
+
parameterValues: params,
|
|
700
|
+
refCursorAsArray: true
|
|
701
|
+
};
|
|
702
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
703
|
+
};
|
|
704
|
+
TransactionAuth.prototype.getPaymentMethods = function () {
|
|
705
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PaymentMethod);
|
|
706
|
+
};
|
|
665
707
|
TransactionAuth.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
666
708
|
var paramValues = {
|
|
667
709
|
transId: transId,
|
|
@@ -23,8 +23,11 @@ import { ChangeLineReferenceRequest } from './model/change-line-reference-reques
|
|
|
23
23
|
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
24
24
|
import { ChangeLineQuantityRequest } from './model/change-line-quantity-request';
|
|
25
25
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
27
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-purchase-order-request.bo';
|
|
28
|
+
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
|
+
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
|
+
import { PaymentRequest } from './model/payment-request';
|
|
28
31
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
29
32
|
protected endPoint: string;
|
|
30
33
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -73,6 +76,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
73
76
|
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
74
77
|
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
75
78
|
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
79
|
+
changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
76
80
|
cancelAddTransactionLine(lineUuid: string): Promise<DataServiceResponseData>;
|
|
77
81
|
deleteTransactionLine(transactionUuid: string, lineUuid: string): Promise<DataServiceResponseData>;
|
|
78
82
|
changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
@@ -89,6 +93,9 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
89
93
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
90
94
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
91
95
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
96
|
+
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
97
|
+
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
98
|
+
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
92
99
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
93
100
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
94
101
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
@@ -448,55 +448,59 @@ var TransactionPublic = (function (_super) {
|
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
450
|
TransactionPublic.prototype.changeLineCommissionCode = function (request) {
|
|
451
|
-
console.warn('not implemented');
|
|
451
|
+
console.warn('changeLineCommissionCode not implemented');
|
|
452
452
|
return Promise.resolve(new DataServiceResponseData());
|
|
453
453
|
};
|
|
454
454
|
TransactionPublic.prototype.changeLineWarehouse = function (request) {
|
|
455
|
-
console.warn('
|
|
455
|
+
console.warn(' changeLineWarehousenot implemented');
|
|
456
456
|
return Promise.resolve(new DataServiceResponseData());
|
|
457
457
|
};
|
|
458
458
|
TransactionPublic.prototype.changeLinePrice = function (request) {
|
|
459
|
-
console.warn('not implemented');
|
|
459
|
+
console.warn('changeLinePrice not implemented');
|
|
460
460
|
return Promise.resolve(new DataServiceResponseData());
|
|
461
461
|
};
|
|
462
462
|
TransactionPublic.prototype.changeLinePriceList = function (request) {
|
|
463
|
-
console.warn('not implemented');
|
|
463
|
+
console.warn('changeLinePriceList not implemented');
|
|
464
464
|
return Promise.resolve(new DataServiceResponseData());
|
|
465
465
|
};
|
|
466
466
|
TransactionPublic.prototype.changeLineVat = function (request) {
|
|
467
|
-
console.warn('not implemented');
|
|
467
|
+
console.warn('changeLineVat not implemented');
|
|
468
468
|
return Promise.resolve(new DataServiceResponseData());
|
|
469
469
|
};
|
|
470
470
|
TransactionPublic.prototype.changeLineDiscount = function (request) {
|
|
471
|
-
console.warn('not implemented');
|
|
471
|
+
console.warn('changeLineDiscount not implemented');
|
|
472
472
|
return Promise.resolve(new DataServiceResponseData());
|
|
473
473
|
};
|
|
474
474
|
TransactionPublic.prototype.changeLineDeliveryMethod = function (request) {
|
|
475
|
-
console.warn('not implemented');
|
|
475
|
+
console.warn('changeLineDeliveryMethod not implemented');
|
|
476
476
|
return Promise.resolve(new DataServiceResponseData());
|
|
477
477
|
};
|
|
478
478
|
TransactionPublic.prototype.changeLineDeliveryDate = function (request) {
|
|
479
|
-
console.warn('not implemented');
|
|
479
|
+
console.warn('changeLineDeliveryDate not implemented');
|
|
480
480
|
return Promise.resolve(new DataServiceResponseData());
|
|
481
481
|
};
|
|
482
482
|
TransactionPublic.prototype.changeLineAssemblyTime = function (request) {
|
|
483
|
-
console.warn('not implemented');
|
|
483
|
+
console.warn('changeLineAssemblyTime not implemented');
|
|
484
484
|
return Promise.resolve(new DataServiceResponseData());
|
|
485
485
|
};
|
|
486
486
|
TransactionPublic.prototype.changeLineEditTime = function (request) {
|
|
487
|
-
console.warn('not implemented');
|
|
487
|
+
console.warn('changeLineEditTime not implemented');
|
|
488
488
|
return Promise.resolve(new DataServiceResponseData());
|
|
489
489
|
};
|
|
490
490
|
TransactionPublic.prototype.changeLineSupplierArticleNumber = function (request) {
|
|
491
|
-
console.warn('not implemented');
|
|
491
|
+
console.warn('changeLineSupplierArticleNumber not implemented');
|
|
492
492
|
return Promise.resolve(new DataServiceResponseData());
|
|
493
493
|
};
|
|
494
494
|
TransactionPublic.prototype.changeLineReference = function (request) {
|
|
495
|
-
console.warn('not implemented');
|
|
495
|
+
console.warn('changeLineReference not implemented');
|
|
496
496
|
return Promise.resolve(new DataServiceResponseData());
|
|
497
497
|
};
|
|
498
498
|
TransactionPublic.prototype.changeLineCollectionCode = function (request) {
|
|
499
|
-
console.warn('not implemented');
|
|
499
|
+
console.warn('changeLineCollectionCode not implemented');
|
|
500
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
501
|
+
};
|
|
502
|
+
TransactionPublic.prototype.changeHeaderTransactionDefinitive = function (request) {
|
|
503
|
+
console.warn('changeHeaderTransactionDefinitive not implemented');
|
|
500
504
|
return Promise.resolve(new DataServiceResponseData());
|
|
501
505
|
};
|
|
502
506
|
TransactionPublic.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
@@ -666,6 +670,18 @@ var TransactionPublic = (function (_super) {
|
|
|
666
670
|
});
|
|
667
671
|
});
|
|
668
672
|
};
|
|
673
|
+
TransactionPublic.prototype.createOutstandingEntry = function (request) {
|
|
674
|
+
console.warn('createOutstandingEntry not implemented');
|
|
675
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
676
|
+
};
|
|
677
|
+
TransactionPublic.prototype.registerSalesOrderPayment = function (request) {
|
|
678
|
+
console.warn('registerSalesOrderPayment not implemented');
|
|
679
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
680
|
+
};
|
|
681
|
+
TransactionPublic.prototype.getPaymentMethods = function () {
|
|
682
|
+
console.warn('registerSalesOrderPayment not implemented');
|
|
683
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
684
|
+
};
|
|
669
685
|
TransactionPublic.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
670
686
|
return __awaiter(this, void 0, void 0, function () {
|
|
671
687
|
var data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -26,8 +26,11 @@ import { ChangeLineSupplierArticleNumberRequest } from './model/change-line-supp
|
|
|
26
26
|
import { ChangeLineReferenceRequest } from './model/change-line-reference-request';
|
|
27
27
|
import { ChangeLineCollectionCodeRequest } from './model/change-line-collection-code-request';
|
|
28
28
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
29
|
-
import { ReceiveGoodsForPurchaseOrderRequest } from
|
|
30
|
-
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from
|
|
29
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-purchase-order-request.bo';
|
|
30
|
+
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
31
|
+
import { PaymentRequest } from './model/payment-request';
|
|
32
|
+
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
33
|
+
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
31
34
|
export declare class Transaction {
|
|
32
35
|
readonly showLoader: Subject<boolean>;
|
|
33
36
|
readonly connectionAborted: Subject<void>;
|
|
@@ -93,6 +96,7 @@ export declare class Transaction {
|
|
|
93
96
|
changeTransactionLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
94
97
|
changeTransactionLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
95
98
|
changeTransactionLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
99
|
+
changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
96
100
|
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
97
101
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
98
102
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
@@ -111,6 +115,9 @@ export declare class Transaction {
|
|
|
111
115
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
112
116
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
113
117
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
118
|
+
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
119
|
+
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
120
|
+
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
114
121
|
static createConnector(options: Options): IoneApiTransaction;
|
|
115
122
|
private _handleConnectionReset;
|
|
116
123
|
}
|
package/build/transaction.js
CHANGED
|
@@ -218,6 +218,9 @@ var Transaction = (function () {
|
|
|
218
218
|
Transaction.prototype.changeTransactionLineCollectionCode = function (request) {
|
|
219
219
|
return this.transaction.changeLineCollectionCode(request);
|
|
220
220
|
};
|
|
221
|
+
Transaction.prototype.changeHeaderTransactionDefinitive = function (request) {
|
|
222
|
+
return this.transaction.changeHeaderTransactionDefinitive(request);
|
|
223
|
+
};
|
|
221
224
|
Transaction.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
222
225
|
return this.transaction.resolvePendingLineReason(pendingLineValues);
|
|
223
226
|
};
|
|
@@ -278,6 +281,15 @@ var Transaction = (function () {
|
|
|
278
281
|
});
|
|
279
282
|
});
|
|
280
283
|
};
|
|
284
|
+
Transaction.prototype.createOutstandingEntry = function (request) {
|
|
285
|
+
return this.transaction.createOutstandingEntry(request);
|
|
286
|
+
};
|
|
287
|
+
Transaction.prototype.registerSalesOrderPayment = function (request) {
|
|
288
|
+
return this.transaction.registerSalesOrderPayment(request);
|
|
289
|
+
};
|
|
290
|
+
Transaction.prototype.getPaymentMethods = function () {
|
|
291
|
+
return this.transaction.getPaymentMethods();
|
|
292
|
+
};
|
|
281
293
|
Transaction.createConnector = function (options) {
|
|
282
294
|
if ((options.username && options.password) || options.session) {
|
|
283
295
|
return new TransactionAuth();
|
|
@@ -391,4 +391,33 @@ describe("TransactionAPI", function () {
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
}); });
|
|
394
|
+
it('createOutstandingEntry', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
|
+
var request, result;
|
|
396
|
+
return __generator(this, function (_a) {
|
|
397
|
+
switch (_a.label) {
|
|
398
|
+
case 0:
|
|
399
|
+
request = {
|
|
400
|
+
transUUID: '7adbd6ed-38f6-48fe-af44-6238d73d5873',
|
|
401
|
+
amount: 120.43
|
|
402
|
+
};
|
|
403
|
+
return [4, transaction.createOutstandingEntry(request)];
|
|
404
|
+
case 1:
|
|
405
|
+
result = _a.sent();
|
|
406
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
407
|
+
return [2];
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}); });
|
|
411
|
+
it('getPaymentMethods', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
412
|
+
var result;
|
|
413
|
+
return __generator(this, function (_a) {
|
|
414
|
+
switch (_a.label) {
|
|
415
|
+
case 0: return [4, transaction.getPaymentMethods()];
|
|
416
|
+
case 1:
|
|
417
|
+
result = _a.sent();
|
|
418
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
419
|
+
return [2];
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}); });
|
|
394
423
|
});
|