@colijnit/transactionapi 1.1.108 → 1.1.110

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.
@@ -0,0 +1,4 @@
1
+ export declare enum TextLineType {
2
+ Chapter = "H",
3
+ OrderLineSet = "O"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextLineType = void 0;
4
+ var TextLineType;
5
+ (function (TextLineType) {
6
+ TextLineType["Chapter"] = "H";
7
+ TextLineType["OrderLineSet"] = "O";
8
+ })(TextLineType = exports.TextLineType || (exports.TextLineType = {}));
@@ -1,12 +1,16 @@
1
1
  import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
2
2
  export declare class DocDeliveryBatch extends BusinessObject {
3
+ amountNotConfirmed: number;
4
+ confirmedPrice: number;
5
+ deleteAllowed: string;
6
+ deleteLine: string;
3
7
  deliveryBatch: string;
4
- docAmountOrg: number;
5
8
  docAmount: number;
6
- docDateOrg: Date;
9
+ docAmountOrg: number;
7
10
  docDate: Date;
8
- reference: string;
9
- confirmedPrice: number;
10
- deleteLine: string;
11
+ docDateOrg: Date;
11
12
  historical: string;
13
+ mutationDate: Date;
14
+ reference: string;
15
+ user: string;
12
16
  }
@@ -1,7 +1,21 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.DocDeliveryBatch = void 0;
4
13
  const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
14
+ const date_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/date-field.decorator");
5
15
  class DocDeliveryBatch extends business_object_1.BusinessObject {
6
16
  }
17
+ __decorate([
18
+ date_field_decorator_1.DateField(),
19
+ __metadata("design:type", Date)
20
+ ], DocDeliveryBatch.prototype, "mutationDate", void 0);
7
21
  exports.DocDeliveryBatch = DocDeliveryBatch;
@@ -0,0 +1,21 @@
1
+ import { TextLineType } from "../enum/text-line-type.enum";
2
+ export declare class OrderLineSetInfo {
3
+ orderLineSetCode: string;
4
+ parentOrderLineSetCode: string;
5
+ orderLineSetId: number;
6
+ text: string;
7
+ amount: number;
8
+ showOnDocuments: number;
9
+ goodId: number;
10
+ title: string;
11
+ categoryId: number;
12
+ textLineType: TextLineType;
13
+ wtProjectNr: string;
14
+ vdProjectId: string;
15
+ curtainId: string;
16
+ catalogId: number;
17
+ aupProjectNr: string;
18
+ aupOrderNr: string;
19
+ hdVariantId: string;
20
+ hdBaseGoodId: string;
21
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderLineSetInfo = void 0;
4
+ class OrderLineSetInfo {
5
+ }
6
+ exports.OrderLineSetInfo = OrderLineSetInfo;
@@ -2,4 +2,5 @@ export declare class PurchaseOrderConfirmationLineDetails {
2
2
  lineNumber: number;
3
3
  amountConfirmed: number;
4
4
  confirmedDate: Date;
5
+ confirmedPrice: number;
5
6
  }
@@ -3,6 +3,7 @@ import { TransactionKind } from '../enum/transaction-kind.enum';
3
3
  import { PriceType } from '@colijnit/mainapi/build/enum/price-type.enum';
4
4
  import { RelationSmallObject } from '@colijnit/relationapi/build/model/relation-small-object.bo';
5
5
  import { TransactionStatusInfo } from './transaction-status-info.bo';
6
+ import { OrderLineSetInfo } from "./order-line-set-info.bo";
6
7
  export declare class TransactionInfo extends BusinessObject {
7
8
  uuid: string;
8
9
  id: number;
@@ -45,6 +46,7 @@ export declare class TransactionInfo extends BusinessObject {
45
46
  scoringChance: number;
46
47
  retailStadium: number;
47
48
  headerInfoStatus: TransactionStatusInfo;
49
+ orderLineSets: OrderLineSetInfo[];
48
50
  canPlanDelivery: boolean;
49
51
  printerName: string;
50
52
  reportId: number;
@@ -16,6 +16,7 @@ const complex_field_decorator_1 = require("@colijnit/ioneconnector/build/factory
16
16
  const no_db_field_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/no-db-field.decorator");
17
17
  const relation_small_object_bo_1 = require("@colijnit/relationapi/build/model/relation-small-object.bo");
18
18
  const transaction_status_info_bo_1 = require("./transaction-status-info.bo");
19
+ const complex_array_decorator_1 = require("@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator");
19
20
  class TransactionInfo extends business_object_1.BusinessObject {
20
21
  constructor() {
21
22
  super(...arguments);
@@ -60,6 +61,10 @@ __decorate([
60
61
  complex_field_decorator_1.ComplexField(transaction_status_info_bo_1.TransactionStatusInfo),
61
62
  __metadata("design:type", transaction_status_info_bo_1.TransactionStatusInfo)
62
63
  ], TransactionInfo.prototype, "headerInfoStatus", void 0);
64
+ __decorate([
65
+ complex_array_decorator_1.ComplexArray(transaction_status_info_bo_1.TransactionStatusInfo),
66
+ __metadata("design:type", Array)
67
+ ], TransactionInfo.prototype, "orderLineSets", void 0);
63
68
  __decorate([
64
69
  no_db_field_decorator_1.NoDbField(),
65
70
  __metadata("design:type", Boolean)
@@ -67,7 +67,7 @@ export declare class TransactionLineInfo extends BusinessObject {
67
67
  supplierId: number;
68
68
  supplierDescription: string;
69
69
  reference: string;
70
- collectionCode: string;
70
+ orderLineSetCode: string;
71
71
  goodDescription: string;
72
72
  goodId: number;
73
73
  grossLineTotal: number;
@@ -121,9 +121,10 @@ describe("TransactionAPI", () => {
121
121
  purchaseOrderConfirmation.leverBatch = "1";
122
122
  purchaseOrderConfirmation.lines = [
123
123
  {
124
- "confirmedDate": new Date(),
125
- "lineNumber": 1,
126
- "amountConfirmed": 1
124
+ confirmedDate: new Date(),
125
+ lineNumber: 1,
126
+ amountConfirmed: 1,
127
+ confirmedPrice: 100
127
128
  }
128
129
  ];
129
130
  const result = await transaction.getPurchaseOrderConfirmation(purchaseOrderConfirmation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transactionapi",
3
- "version": "1.1.108",
3
+ "version": "1.1.110",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",