@colijnit/transactionapi 1.1.157 → 1.1.159

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.
@@ -5,6 +5,7 @@ export declare enum PaymentMethod {
5
5
  GetPaymentLinkStatus = "getPaymentLinkStatus",
6
6
  GetDepositPaymentInfo = "getDepositPaymentInfo",
7
7
  GetOutstandingCustomerAmounts = "getOutstandingCustomerAmounts",
8
+ GetPaymentAnalysis = "getPaymentAnalysis",
8
9
  GetRegisteredPaymentInfo = "getRegisteredPaymentInfo",
9
10
  GetPaymentMethodsForSalesOrder = "getPaymentMethodsForSalesOrder",
10
11
  GetPaymentMethodsForCashRegister = "getPaymentMethodsForCashRegister",
@@ -9,6 +9,7 @@ var PaymentMethod;
9
9
  PaymentMethod["GetPaymentLinkStatus"] = "getPaymentLinkStatus";
10
10
  PaymentMethod["GetDepositPaymentInfo"] = "getDepositPaymentInfo";
11
11
  PaymentMethod["GetOutstandingCustomerAmounts"] = "getOutstandingCustomerAmounts";
12
+ PaymentMethod["GetPaymentAnalysis"] = "getPaymentAnalysis";
12
13
  PaymentMethod["GetRegisteredPaymentInfo"] = "getRegisteredPaymentInfo";
13
14
  PaymentMethod["GetPaymentMethodsForSalesOrder"] = "getPaymentMethodsForSalesOrder";
14
15
  PaymentMethod["GetPaymentMethodsForCashRegister"] = "getPaymentMethodsForCashRegister";
@@ -214,6 +214,7 @@ export declare abstract class IoneApiTransaction {
214
214
  abstract getPaymentLinkStatus(paymentLinkUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
215
215
  abstract getDepositPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
216
216
  abstract getOutstandingCustomerAmounts(adminIds: number[], transactionId?: number, startDate?: Date, endDate?: Date, branchNumbers?: string[], salesPersonIds?: number[], relationIds?: string[], invoiceNumbers?: string[], expirationDateCalculationType?: string, expiryCategory?: string, showLoader?: boolean): Promise<DataServiceResponseData>;
217
+ abstract getPaymentAnalysis(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
217
218
  abstract getRegisteredPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
218
219
  abstract getMaxConfirmedDeliveryDateForPurchaseOrder(purchaseOrderTransId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
219
220
  abstract getCauseCodes(showLoader?: boolean): Promise<DataServiceResponseData>;
@@ -0,0 +1,8 @@
1
+ import { BusinessObject } from "@colijnit/ioneconnector/build/model/business-object";
2
+ export declare class PaymentAnalysis extends BusinessObject {
3
+ totalDeposit: number;
4
+ totalDepositInvoice: number;
5
+ totalInvoice: number;
6
+ totalToInvoice: number;
7
+ totalToPay: number;
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentAnalysis = void 0;
4
+ const business_object_1 = require("@colijnit/ioneconnector/build/model/business-object");
5
+ class PaymentAnalysis extends business_object_1.BusinessObject {
6
+ }
7
+ exports.PaymentAnalysis = PaymentAnalysis;
@@ -264,6 +264,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
264
264
  getPaymentLinkStatus(paymentLinkUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
265
265
  getDepositPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
266
266
  getOutstandingCustomerAmounts(adminIds: number[], transactionId?: number, startDate?: Date, endDate?: Date, branchNumbers?: string[], salesPersonIds?: number[], relationIds?: string[], invoiceNumbers?: string[], expirationDateCalculationType?: string, expiryCategory?: string, showLoader?: boolean): Promise<DataServiceResponseData>;
267
+ getPaymentAnalysis(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
267
268
  getRegisteredPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
268
269
  getMaxConfirmedDeliveryDateForPurchaseOrder(purchaseOrderTransId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
269
270
  getPaymentMethods(showLoader?: boolean): Promise<DataServiceResponseData>;
@@ -1135,6 +1135,18 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
1135
1135
  };
1136
1136
  return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
1137
1137
  }
1138
+ getPaymentAnalysis(uuid, showLoader) {
1139
+ const params = {
1140
+ transactionUUID: uuid
1141
+ };
1142
+ const data = {
1143
+ moduleName: module_name_enum_1.ModuleName.Accounting,
1144
+ methodName: payment_method_enum_1.PaymentMethod.GetPaymentAnalysis,
1145
+ parameterValues: params,
1146
+ refCursorAsArray: true
1147
+ };
1148
+ return this._call(data_service_method_enum_1.DataServiceMethod.ExecuteMethod, data, backend_service_name_enum_1.BackendServiceName.DataService, showLoader);
1149
+ }
1138
1150
  getRegisteredPaymentInfo(uuid, showLoader) {
1139
1151
  const params = {
1140
1152
  transactionUUID: uuid
@@ -262,6 +262,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
262
262
  getPaymentLinkStatus(paymentLinkUUID: string, showLoader?: boolean): Promise<DataServiceResponseData>;
263
263
  getDepositPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
264
264
  getOutstandingCustomerAmounts(adminIds: number[], transactionId?: number, startDate?: Date, endDate?: Date, branchNumbers?: string[], salesPersonIds?: number[], relationIds?: string[], invoiceNumbers?: string[], expirationDateCalculationType?: string, expiryCategory?: string, showLoader?: boolean): Promise<DataServiceResponseData>;
265
+ getPaymentAnalysis(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
265
266
  getRegisteredPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
266
267
  getMaxConfirmedDeliveryDateForPurchaseOrder(purchaseOrderTransId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
267
268
  getPaymentMethods(showLoader?: boolean): Promise<DataServiceResponseData>;
@@ -613,6 +613,10 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
613
613
  console.warn('getOutstandingCustomerAmounts not implemented');
614
614
  return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
615
615
  }
616
+ getPaymentAnalysis(uuid, showLoader) {
617
+ console.warn('getPaymentAnalysis not implemented');
618
+ return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
619
+ }
616
620
  getRegisteredPaymentInfo(uuid, showLoader) {
617
621
  console.warn('getRegisteredPaymentInfo not implemented');
618
622
  return Promise.resolve(new data_service_response_data_1.DataServiceResponseData());
@@ -209,6 +209,7 @@ export declare class Transaction {
209
209
  getPosGroups(showLoader?: boolean): Promise<DataServiceResponseData>;
210
210
  getDepositPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
211
211
  getOutstandingCustomerAmounts(adminIds: number[], transactionId?: number, startDate?: Date, endDate?: Date, branchNumbers?: string[], salesPersonIds?: number[], relationIds?: string[], invoiceNumbers?: string[], expirationDateCalculationType?: string, expiryCategory?: string, showLoader?: boolean): Promise<DataServiceResponseData>;
212
+ getPaymentAnalysis(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
212
213
  getRegisteredPaymentInfo(uuid: string, showLoader?: boolean): Promise<DataServiceResponseData>;
213
214
  getMaxConfirmedDeliveryDateForPurchaseOrder(purchaseOrderTransId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
214
215
  addRelationToTransaction(uuid: string, relationId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
@@ -176,6 +176,9 @@ class Transaction {
176
176
  getOutstandingCustomerAmounts(adminIds, transactionId, startDate, endDate, branchNumbers, salesPersonIds, relationIds, invoiceNumbers, expirationDateCalculationType, expiryCategory, showLoader) {
177
177
  return this.transaction.getOutstandingCustomerAmounts(adminIds, transactionId, startDate, endDate, branchNumbers, salesPersonIds, relationIds, invoiceNumbers, expirationDateCalculationType, expiryCategory, showLoader);
178
178
  }
179
+ getPaymentAnalysis(uuid, showLoader) {
180
+ return this.transaction.getPaymentAnalysis(uuid, showLoader);
181
+ }
179
182
  getRegisteredPaymentInfo(uuid, showLoader) {
180
183
  return this.transaction.getRegisteredPaymentInfo(uuid, showLoader);
181
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transactionapi",
3
- "version": "1.1.157",
3
+ "version": "1.1.159",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
@@ -27,15 +27,15 @@
27
27
  "rxjs-compat": "^6.6.3"
28
28
  },
29
29
  "peerDependencies": {
30
- "@colijnit/ioneconnector": ">=3.1.23",
31
- "@colijnit/mainapi": ">=1.0.36",
32
- "@colijnit/relationapi": ">=1.0.13"
30
+ "@colijnit/ioneconnector": ">=3.1.24",
31
+ "@colijnit/mainapi": ">=1.0.38",
32
+ "@colijnit/relationapi": ">=1.0.14"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^24.0.13",
36
- "@colijnit/ioneconnector": "3.1.23",
37
- "@colijnit/mainapi": "1.0.36",
38
- "@colijnit/relationapi": "1.0.13",
36
+ "@colijnit/ioneconnector": "3.1.24",
37
+ "@colijnit/mainapi": "1.0.38",
38
+ "@colijnit/relationapi": "1.0.14",
39
39
  "grunt": "1.0.3",
40
40
  "grunt-clean": "0.4.0",
41
41
  "grunt-contrib-clean": "1.1.0",