@colijnit/transactionapi 1.1.23 → 1.1.24
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/ione-api-transaction.d.ts +8 -3
- 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/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/transaction-auth.d.ts +7 -2
- package/build/transaction-auth.js +33 -0
- package/build/transaction-public.d.ts +7 -2
- package/build/transaction-public.js +26 -14
- package/build/transaction.d.ts +7 -2
- package/build/transaction.js +9 -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 = {}));
|
|
@@ -24,9 +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 { ReceiveGoodsForPurchaseOrderRequest } from "./model/receive-goods-for-purchase-order-request.bo";
|
|
28
|
-
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from "./model/receive-goods-for-purchase-order-correction-request.bo";
|
|
29
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';
|
|
30
32
|
export declare abstract class IoneApiTransaction {
|
|
31
33
|
readonly showLoader: Subject<boolean>;
|
|
32
34
|
readonly connectionAborted: Subject<void>;
|
|
@@ -81,6 +83,9 @@ export declare abstract class IoneApiTransaction {
|
|
|
81
83
|
abstract getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
82
84
|
abstract getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
83
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>;
|
|
84
89
|
abstract changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
85
90
|
abstract changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
86
91
|
abstract changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
@@ -96,10 +101,10 @@ export declare abstract class IoneApiTransaction {
|
|
|
96
101
|
abstract changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
97
102
|
abstract changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
98
103
|
abstract changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
104
|
+
abstract changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
99
105
|
abstract getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
100
106
|
abstract getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
101
107
|
abstract receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
102
108
|
abstract receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
103
|
-
abstract changeHeaderTransactionDefinitive(request: ChangeHeaderTransactionDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
104
109
|
protected endPoint: string;
|
|
105
110
|
}
|
|
@@ -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 };
|
|
@@ -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() {
|
|
@@ -23,9 +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
|
|
26
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-purchase-order-request.bo';
|
|
27
27
|
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
28
|
-
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from
|
|
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';
|
|
29
31
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
30
32
|
private _boSerializer;
|
|
31
33
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -90,6 +92,9 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
90
92
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
91
93
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
92
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>;
|
|
93
98
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
94
99
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
95
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() {
|
|
@@ -671,6 +672,38 @@ var TransactionAuth = (function (_super) {
|
|
|
671
672
|
};
|
|
672
673
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
673
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
|
+
};
|
|
674
707
|
TransactionAuth.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
675
708
|
var paramValues = {
|
|
676
709
|
transId: transId,
|
|
@@ -23,9 +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 { ReceiveGoodsForPurchaseOrderRequest } from "./model/receive-goods-for-purchase-order-request.bo";
|
|
27
|
-
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from "./model/receive-goods-for-purchase-order-correction-request.bo";
|
|
28
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';
|
|
29
31
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
30
32
|
protected endPoint: string;
|
|
31
33
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -91,6 +93,9 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
91
93
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
92
94
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
93
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>;
|
|
94
99
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
95
100
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
96
101
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
@@ -448,59 +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
500
|
return Promise.resolve(new DataServiceResponseData());
|
|
501
501
|
};
|
|
502
502
|
TransactionPublic.prototype.changeHeaderTransactionDefinitive = function (request) {
|
|
503
|
-
console.warn('not implemented');
|
|
503
|
+
console.warn('changeHeaderTransactionDefinitive not implemented');
|
|
504
504
|
return Promise.resolve(new DataServiceResponseData());
|
|
505
505
|
};
|
|
506
506
|
TransactionPublic.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
@@ -670,6 +670,18 @@ var TransactionPublic = (function (_super) {
|
|
|
670
670
|
});
|
|
671
671
|
});
|
|
672
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
|
+
};
|
|
673
685
|
TransactionPublic.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
674
686
|
return __awaiter(this, void 0, void 0, function () {
|
|
675
687
|
var data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -26,8 +26,10 @@ 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';
|
|
31
33
|
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
32
34
|
export declare class Transaction {
|
|
33
35
|
readonly showLoader: Subject<boolean>;
|
|
@@ -113,6 +115,9 @@ export declare class Transaction {
|
|
|
113
115
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
114
116
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
115
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>;
|
|
116
121
|
static createConnector(options: Options): IoneApiTransaction;
|
|
117
122
|
private _handleConnectionReset;
|
|
118
123
|
}
|
package/build/transaction.js
CHANGED
|
@@ -281,6 +281,15 @@ var Transaction = (function () {
|
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
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
|
+
};
|
|
284
293
|
Transaction.createConnector = function (options) {
|
|
285
294
|
if ((options.username && options.password) || options.session) {
|
|
286
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
|
});
|