@colijnit/transactionapi 1.1.39 → 1.1.40

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 DeliveryTimeUnitType {
2
+ Days = "1",
3
+ Weeks = "2"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var DeliveryTimeUnitType;
2
+ (function (DeliveryTimeUnitType) {
3
+ DeliveryTimeUnitType["Days"] = "1";
4
+ DeliveryTimeUnitType["Weeks"] = "2";
5
+ })(DeliveryTimeUnitType || (DeliveryTimeUnitType = {}));
@@ -53,6 +53,7 @@ export declare enum PublicServiceMethod {
53
53
  ResolvePendingLineReason = "resolvePendingLineReason",
54
54
  ResolveHeaderPendingReason = "resolveHeaderPendingReason",
55
55
  CustomerFullObject = "customerFullObject",
56
+ SupplierFullObject = "supplierFullObject",
56
57
  GetSequenceValue = "getSequenceValue",
57
58
  PostalCodeRetrieval = "postalCodeRetrieval",
58
59
  GetDeliveryMethods = "getDeliveryMethods",
@@ -54,6 +54,7 @@ export var PublicServiceMethod;
54
54
  PublicServiceMethod["ResolvePendingLineReason"] = "resolvePendingLineReason";
55
55
  PublicServiceMethod["ResolveHeaderPendingReason"] = "resolveHeaderPendingReason";
56
56
  PublicServiceMethod["CustomerFullObject"] = "customerFullObject";
57
+ PublicServiceMethod["SupplierFullObject"] = "supplierFullObject";
57
58
  PublicServiceMethod["GetSequenceValue"] = "getSequenceValue";
58
59
  PublicServiceMethod["PostalCodeRetrieval"] = "postalCodeRetrieval";
59
60
  PublicServiceMethod["GetDeliveryMethods"] = "getDeliveryMethods";
@@ -1,5 +1,6 @@
1
1
  export declare enum RelationObjectName {
2
2
  BranchLov = "BranchLov",
3
3
  CustomerFullObject = "CustomerFullObject",
4
+ SupplierFullObject = "SupplierFullObject",
4
5
  GetRelationNumber = "GetRelationNumber"
5
6
  }
@@ -2,5 +2,6 @@ export var RelationObjectName;
2
2
  (function (RelationObjectName) {
3
3
  RelationObjectName["BranchLov"] = "BranchLov";
4
4
  RelationObjectName["CustomerFullObject"] = "CustomerFullObject";
5
+ RelationObjectName["SupplierFullObject"] = "SupplierFullObject";
5
6
  RelationObjectName["GetRelationNumber"] = "GetRelationNumber";
6
7
  })(RelationObjectName || (RelationObjectName = {}));
@@ -102,6 +102,7 @@ export declare abstract class IoneApiTransaction {
102
102
  abstract resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
103
103
  abstract resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<DataServiceResponseData>;
104
104
  abstract getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
105
+ abstract getSupplierFullObject(relationNo: number): Promise<DataServiceResponseData>;
105
106
  abstract getRelationNumber(relationId: number): Promise<DataServiceResponseData>;
106
107
  abstract getSequenceValue(sequenceName: SequenceName, noSequence: boolean): Promise<DataServiceResponseData>;
107
108
  abstract getPriceLists(code?: string): Promise<DataServiceResponseData>;
@@ -0,0 +1,15 @@
1
+ import { BusinessObject } from './business-object';
2
+ export declare class OffSetAccount extends BusinessObject {
3
+ get relationId(): number;
4
+ set relationId(relationId: number);
5
+ get adminId(): number;
6
+ set adminId(adminId: number);
7
+ get offset(): number;
8
+ set offset(offset: number);
9
+ private _relationId;
10
+ private _adminId;
11
+ private _offset;
12
+ private _idObject;
13
+ constructor();
14
+ getId(): Object;
15
+ }
@@ -0,0 +1,95 @@
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 { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
24
+ import { DataMapping } from '../enum/data-mapping.enum';
25
+ import { BusinessObject } from './business-object';
26
+ import { DbFieldAlias } from '../factory/decorators/db-field-alias.decorator';
27
+ import { NoDbField } from '../factory/decorators/no-db-field.decorator';
28
+ var OffSetAccount = (function (_super) {
29
+ __extends(OffSetAccount, _super);
30
+ function OffSetAccount() {
31
+ var _this = _super.call(this) || this;
32
+ _this._idObject = {};
33
+ return _this;
34
+ }
35
+ Object.defineProperty(OffSetAccount.prototype, "relationId", {
36
+ get: function () {
37
+ return this._relationId;
38
+ },
39
+ set: function (relationId) {
40
+ this._relationId = relationId;
41
+ this._idObject.relationId = relationId;
42
+ },
43
+ enumerable: true,
44
+ configurable: true
45
+ });
46
+ Object.defineProperty(OffSetAccount.prototype, "adminId", {
47
+ get: function () {
48
+ return this._adminId;
49
+ },
50
+ set: function (adminId) {
51
+ this._adminId = adminId;
52
+ this._idObject.adminId = adminId;
53
+ },
54
+ enumerable: true,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(OffSetAccount.prototype, "offset", {
58
+ get: function () {
59
+ return this._offset;
60
+ },
61
+ set: function (offset) {
62
+ this._offset = offset;
63
+ this._idObject.offset = offset;
64
+ },
65
+ enumerable: true,
66
+ configurable: true
67
+ });
68
+ OffSetAccount.prototype.getId = function () {
69
+ return this._idObject;
70
+ };
71
+ __decorate([
72
+ DbFieldAlias("relationId"),
73
+ __metadata("design:type", Number)
74
+ ], OffSetAccount.prototype, "_relationId", void 0);
75
+ __decorate([
76
+ DbFieldAlias("adminId"),
77
+ __metadata("design:type", Number)
78
+ ], OffSetAccount.prototype, "_adminId", void 0);
79
+ __decorate([
80
+ DbFieldAlias("offset"),
81
+ __metadata("design:type", Number)
82
+ ], OffSetAccount.prototype, "_offset", void 0);
83
+ __decorate([
84
+ NoDbField(),
85
+ __metadata("design:type", Object)
86
+ ], OffSetAccount.prototype, "_idObject", void 0);
87
+ OffSetAccount = __decorate([
88
+ BusinessObjectData({
89
+ mapping: DataMapping.RelMan
90
+ }),
91
+ __metadata("design:paramtypes", [])
92
+ ], OffSetAccount);
93
+ return OffSetAccount;
94
+ }(BusinessObject));
95
+ export { OffSetAccount };
@@ -1,2 +1,3 @@
1
1
  import { CustomerFullObject } from "./customer-full-object.bo";
2
- export declare type RelationAnyType = CustomerFullObject;
2
+ import { SupplierFullObject } from './supplier-full-object.bo';
3
+ export declare type RelationAnyType = CustomerFullObject | SupplierFullObject;
@@ -0,0 +1,64 @@
1
+ import { Relation } from './relation.bo';
2
+ import { PriceType } from '../enum/refcode/price-type.enum';
3
+ import { BankAccount } from './bank-account.bo';
4
+ import { RelationMailingCode } from './relation-mailing-code';
5
+ import { RelationPriceList } from './relation-price-list.bo';
6
+ import { RelationContactLink } from './relation-contact-link.bo';
7
+ import { CoDocument } from './co-document';
8
+ import { CoNotition } from './co-notition.bo';
9
+ import { TagTreeItem } from './tag-tree-item.bo';
10
+ import { ContactMoment } from './contact-moment.bo';
11
+ import { DeliveryTimeUnitType } from '../enum/delivery-time-unit-type.enum';
12
+ import { OffSetAccount } from './off-set-account.bo';
13
+ export declare class SupplierFullObject extends Relation {
14
+ bankRelation: string;
15
+ supplierGroup: string;
16
+ groupOrders: boolean;
17
+ packageStickers: boolean;
18
+ intrastatDeclaration: boolean;
19
+ carriagePaidOrderAmount: number;
20
+ orderCode: string;
21
+ statisticsNr: number;
22
+ standardDelivery: number;
23
+ standardDeliveryUnit: DeliveryTimeUnitType;
24
+ deliveryTimeSpecification: number;
25
+ deliveryTimeSpecificationUnit: DeliveryTimeUnitType;
26
+ financialSupplierGroup: string;
27
+ vatPayment: boolean;
28
+ costingFactor: number;
29
+ priceType: PriceType;
30
+ purchasingOrganization: string;
31
+ vatNr: string;
32
+ exceedanceCode: string;
33
+ tisCode: number;
34
+ invoiceReceiptSpecification: number;
35
+ vatCode: number;
36
+ stickerIL: string;
37
+ h3dDistId: string;
38
+ guaranteeFeed: boolean;
39
+ standardDutchCompanyDivision: number;
40
+ supplierType: number;
41
+ collateOrderForms: boolean;
42
+ directSell: boolean;
43
+ sendsConfirmations: boolean;
44
+ dropshipment: boolean;
45
+ bankAccounts: BankAccount[];
46
+ mailingCodes: RelationMailingCode[];
47
+ pricelists: RelationPriceList[];
48
+ contacts: RelationContactLink[];
49
+ documentation: CoDocument[];
50
+ notitions: CoNotition[];
51
+ tags: TagTreeItem[];
52
+ contactMoments: ContactMoment[];
53
+ images: CoDocument[];
54
+ offsetAccounts: OffSetAccount[];
55
+ mailingCodeIds: string[];
56
+ get avatarImage(): CoDocument;
57
+ set avatarImage(avatarImage: CoDocument);
58
+ get avatarImageUri(): string;
59
+ constructor();
60
+ buildMailingCodeIds(): void;
61
+ buildMailingCodes(): void;
62
+ orderDocuments(byOrderedCollection: CoDocument[]): void;
63
+ orderImages(byOrderedCollection: CoDocument[]): void;
64
+ }
@@ -0,0 +1,200 @@
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 { BusinessObjectData } from '../factory/decorators/business-object-data.decorator';
24
+ import { DataMapping } from '../enum/data-mapping.enum';
25
+ import { Relation } from './relation.bo';
26
+ import { DefaultSendValue } from '../utils/default-send-value.utils';
27
+ import { TrueFalseDbType } from '../enum/true-false-db-type.enum';
28
+ import { BooleanText } from '../factory/decorators/boolean.decorator';
29
+ import { BankAccount } from './bank-account.bo';
30
+ import { ComplexArray } from '../factory/decorators/complex-array.decorator';
31
+ import { RelationMailingCode } from './relation-mailing-code';
32
+ import { RelationPriceList } from './relation-price-list.bo';
33
+ import { RelationContactLink } from './relation-contact-link.bo';
34
+ import { CoDocument } from './co-document';
35
+ import { CoNotition } from './co-notition.bo';
36
+ import { TagTreeItem } from './tag-tree-item.bo';
37
+ import { ContactMoment } from './contact-moment.bo';
38
+ import { CoDocumentImageDisplayKind } from '../enum/co-document-image-display-kind.enum';
39
+ import { NoDbField } from '../factory/decorators/no-db-field.decorator';
40
+ import { RelationObjectsSharedFieldLogic } from './relation-objects-shared-field-logic';
41
+ import { RelationKind } from '../enum/relation-kind.enum';
42
+ import { RelationNameKind } from '../enum/relation-name-kind.enum';
43
+ import { VatType } from '../enum/vat-type.enum';
44
+ import { BoFactoryStep } from '../utils/bo-factory-step.utils';
45
+ import { BoSerializerStep } from '../utils/bo-serializer-step.utils';
46
+ import { OffSetAccount } from './off-set-account.bo';
47
+ var SupplierFullObject = (function (_super) {
48
+ __extends(SupplierFullObject, _super);
49
+ function SupplierFullObject() {
50
+ var _this = _super.call(this) || this;
51
+ _this.vatPayment = true;
52
+ _this.bankAccounts = [];
53
+ _this.mailingCodes = [];
54
+ _this.pricelists = [];
55
+ _this.contacts = [];
56
+ _this.documentation = [];
57
+ _this.notitions = [];
58
+ _this.tags = [];
59
+ _this.contactMoments = [];
60
+ _this.images = [];
61
+ _this.offsetAccounts = [];
62
+ _this.relationType = RelationKind.Supplier;
63
+ _this.type = RelationNameKind.Company;
64
+ _this.vatType = VatType.Purchase;
65
+ return _this;
66
+ }
67
+ Object.defineProperty(SupplierFullObject.prototype, "avatarImage", {
68
+ get: function () {
69
+ return this.images.find(function (i) { return i.imageDisplayKind === CoDocumentImageDisplayKind.Avatar; });
70
+ },
71
+ set: function (avatarImage) {
72
+ RelationObjectsSharedFieldLogic.SetAvatarImage(avatarImage, this.images);
73
+ },
74
+ enumerable: true,
75
+ configurable: true
76
+ });
77
+ Object.defineProperty(SupplierFullObject.prototype, "avatarImageUri", {
78
+ get: function () {
79
+ return this.avatarImage ? this.avatarImage.thumbnailBodyAsDataUri : "";
80
+ },
81
+ enumerable: true,
82
+ configurable: true
83
+ });
84
+ SupplierFullObject.prototype.buildMailingCodeIds = function () {
85
+ this.mailingCodeIds = RelationObjectsSharedFieldLogic.BuildMailingCodeIds(this.mailingCodes);
86
+ };
87
+ SupplierFullObject.prototype.buildMailingCodes = function () {
88
+ this.mailingCodes = RelationObjectsSharedFieldLogic.BuildMailingCodes(this.relationId, this.mailingCodeIds);
89
+ };
90
+ SupplierFullObject.prototype.orderDocuments = function (byOrderedCollection) {
91
+ this.documentation = RelationObjectsSharedFieldLogic.GetOrderedDocuments(this.documentation, byOrderedCollection);
92
+ };
93
+ SupplierFullObject.prototype.orderImages = function (byOrderedCollection) {
94
+ this.images = RelationObjectsSharedFieldLogic.GetOrderedDocuments(this.images, byOrderedCollection);
95
+ };
96
+ __decorate([
97
+ DefaultSendValue(TrueFalseDbType.True),
98
+ BooleanText(),
99
+ __metadata("design:type", Boolean)
100
+ ], SupplierFullObject.prototype, "groupOrders", void 0);
101
+ __decorate([
102
+ DefaultSendValue(TrueFalseDbType.True),
103
+ BooleanText(),
104
+ __metadata("design:type", Boolean)
105
+ ], SupplierFullObject.prototype, "packageStickers", void 0);
106
+ __decorate([
107
+ DefaultSendValue(TrueFalseDbType.True),
108
+ BooleanText(),
109
+ __metadata("design:type", Boolean)
110
+ ], SupplierFullObject.prototype, "intrastatDeclaration", void 0);
111
+ __decorate([
112
+ BooleanText(),
113
+ __metadata("design:type", Boolean)
114
+ ], SupplierFullObject.prototype, "vatPayment", void 0);
115
+ __decorate([
116
+ BooleanText(),
117
+ __metadata("design:type", Boolean)
118
+ ], SupplierFullObject.prototype, "guaranteeFeed", void 0);
119
+ __decorate([
120
+ BooleanText(),
121
+ __metadata("design:type", Boolean)
122
+ ], SupplierFullObject.prototype, "collateOrderForms", void 0);
123
+ __decorate([
124
+ BooleanText(),
125
+ __metadata("design:type", Boolean)
126
+ ], SupplierFullObject.prototype, "directSell", void 0);
127
+ __decorate([
128
+ BooleanText(),
129
+ __metadata("design:type", Boolean)
130
+ ], SupplierFullObject.prototype, "sendsConfirmations", void 0);
131
+ __decorate([
132
+ BooleanText(),
133
+ __metadata("design:type", Boolean)
134
+ ], SupplierFullObject.prototype, "dropshipment", void 0);
135
+ __decorate([
136
+ ComplexArray(BankAccount),
137
+ __metadata("design:type", Array)
138
+ ], SupplierFullObject.prototype, "bankAccounts", void 0);
139
+ __decorate([
140
+ ComplexArray(RelationMailingCode),
141
+ __metadata("design:type", Array)
142
+ ], SupplierFullObject.prototype, "mailingCodes", void 0);
143
+ __decorate([
144
+ ComplexArray(RelationPriceList),
145
+ __metadata("design:type", Array)
146
+ ], SupplierFullObject.prototype, "pricelists", void 0);
147
+ __decorate([
148
+ ComplexArray(RelationContactLink),
149
+ __metadata("design:type", Array)
150
+ ], SupplierFullObject.prototype, "contacts", void 0);
151
+ __decorate([
152
+ ComplexArray(CoDocument),
153
+ __metadata("design:type", Array)
154
+ ], SupplierFullObject.prototype, "documentation", void 0);
155
+ __decorate([
156
+ ComplexArray(CoNotition),
157
+ __metadata("design:type", Array)
158
+ ], SupplierFullObject.prototype, "notitions", void 0);
159
+ __decorate([
160
+ ComplexArray(TagTreeItem),
161
+ __metadata("design:type", Array)
162
+ ], SupplierFullObject.prototype, "tags", void 0);
163
+ __decorate([
164
+ ComplexArray(ContactMoment),
165
+ __metadata("design:type", Array)
166
+ ], SupplierFullObject.prototype, "contactMoments", void 0);
167
+ __decorate([
168
+ ComplexArray(CoDocument),
169
+ __metadata("design:type", Array)
170
+ ], SupplierFullObject.prototype, "images", void 0);
171
+ __decorate([
172
+ ComplexArray(OffSetAccount),
173
+ __metadata("design:type", Array)
174
+ ], SupplierFullObject.prototype, "offsetAccounts", void 0);
175
+ __decorate([
176
+ NoDbField(),
177
+ __metadata("design:type", Array)
178
+ ], SupplierFullObject.prototype, "mailingCodeIds", void 0);
179
+ __decorate([
180
+ BoFactoryStep(),
181
+ __metadata("design:type", Function),
182
+ __metadata("design:paramtypes", []),
183
+ __metadata("design:returntype", void 0)
184
+ ], SupplierFullObject.prototype, "buildMailingCodeIds", null);
185
+ __decorate([
186
+ BoSerializerStep(),
187
+ __metadata("design:type", Function),
188
+ __metadata("design:paramtypes", []),
189
+ __metadata("design:returntype", void 0)
190
+ ], SupplierFullObject.prototype, "buildMailingCodes", null);
191
+ SupplierFullObject = __decorate([
192
+ BusinessObjectData({
193
+ name: "SupplierFullObject",
194
+ mapping: DataMapping.RelMan
195
+ }),
196
+ __metadata("design:paramtypes", [])
197
+ ], SupplierFullObject);
198
+ return SupplierFullObject;
199
+ }(Relation));
200
+ export { SupplierFullObject };
@@ -135,6 +135,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
135
135
  resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
136
136
  resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<DataServiceResponseData>;
137
137
  getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
138
+ getSupplierFullObject(relationNo: number): Promise<DataServiceResponseData>;
138
139
  getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
139
140
  getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
140
141
  getPriceLists(code?: string): Promise<DataServiceResponseData>;
@@ -770,6 +770,15 @@ var TransactionAuth = (function (_super) {
770
770
  };
771
771
  return this._call(DataServiceMethod.SelectSingleObject, data);
772
772
  };
773
+ TransactionAuth.prototype.getSupplierFullObject = function (relationNo) {
774
+ var data = {
775
+ moduleName: ModuleName.Relation,
776
+ objectName: RelationObjectName.SupplierFullObject,
777
+ refCursorAsArray: true,
778
+ objectId: relationNo
779
+ };
780
+ return this._call(DataServiceMethod.SelectSingleObject, data);
781
+ };
773
782
  TransactionAuth.prototype.getRelationNumber = function (relationId) {
774
783
  var params = {
775
784
  relationId: relationId
@@ -136,6 +136,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
136
136
  resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
137
137
  resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<DataServiceResponseData>;
138
138
  getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
139
+ getSupplierFullObject(relationNo: number): Promise<DataServiceResponseData>;
139
140
  getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
140
141
  insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
141
142
  updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
@@ -669,6 +669,18 @@ var TransactionPublic = (function (_super) {
669
669
  });
670
670
  });
671
671
  };
672
+ TransactionPublic.prototype.getSupplierFullObject = function (relationNo) {
673
+ return __awaiter(this, void 0, void 0, function () {
674
+ var params, data;
675
+ return __generator(this, function (_a) {
676
+ params = {
677
+ objectId: relationNo
678
+ };
679
+ data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
680
+ return [2, this._call(PublicServiceMethod.CustomerFullObject, data)];
681
+ });
682
+ });
683
+ };
672
684
  TransactionPublic.prototype.getRelationNumber = function (relationId) {
673
685
  return __awaiter(this, void 0, void 0, function () {
674
686
  var params, data;
@@ -154,6 +154,7 @@ export declare class Transaction {
154
154
  resolvePendingHeaderReason(pendingHeaderValues: ResolveHeaderPendingReasonRequest): Promise<DataServiceResponseData>;
155
155
  searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
156
156
  getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
157
+ getSupplierFullObject(relationNo: number): Promise<DataServiceResponseData>;
157
158
  getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
158
159
  getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
159
160
  getPriceLists(code?: string): Promise<DataServiceResponseData>;
@@ -305,6 +305,9 @@ var Transaction = (function () {
305
305
  Transaction.prototype.getCustomerFullObject = function (relationNo) {
306
306
  return this.transaction.getCustomerFullObject(relationNo);
307
307
  };
308
+ Transaction.prototype.getSupplierFullObject = function (relationNo) {
309
+ return this.transaction.getSupplierFullObject(relationNo);
310
+ };
308
311
  Transaction.prototype.getRelationNumber = function (relationId) {
309
312
  return this.transaction.getRelationNumber(relationId);
310
313
  };
@@ -316,6 +316,18 @@ describe("TransactionAPI", function () {
316
316
  }
317
317
  });
318
318
  }); });
319
+ it('getRelationNumber', function () { return __awaiter(void 0, void 0, void 0, function () {
320
+ var result;
321
+ return __generator(this, function (_a) {
322
+ switch (_a.label) {
323
+ case 0: return [4, transaction.getRelationNumber(74192)];
324
+ case 1:
325
+ result = _a.sent();
326
+ expect(result.validationResult.success).toBeTruthy();
327
+ return [2];
328
+ }
329
+ });
330
+ }); });
319
331
  it('getCustomerFullObject', function () { return __awaiter(void 0, void 0, void 0, function () {
320
332
  var result;
321
333
  return __generator(this, function (_a) {
@@ -328,6 +340,18 @@ describe("TransactionAPI", function () {
328
340
  }
329
341
  });
330
342
  }); });
343
+ it('getSupplierFullObject', function () { return __awaiter(void 0, void 0, void 0, function () {
344
+ var result;
345
+ return __generator(this, function (_a) {
346
+ switch (_a.label) {
347
+ case 0: return [4, transaction.getSupplierFullObject(15268)];
348
+ case 1:
349
+ result = _a.sent();
350
+ expect(result.validationResult.success).toBeTruthy();
351
+ return [2];
352
+ }
353
+ });
354
+ }); });
331
355
  it('getCashRegisters', function () { return __awaiter(void 0, void 0, void 0, function () {
332
356
  var result;
333
357
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transactionapi",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",