cemiar-epic-service-common 1.0.116 → 1.0.117
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,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a Bank Statement object as defined in Epic SDK 2018.
|
|
3
|
+
*/
|
|
4
|
+
export interface GeneralLedgerReconcileBank {
|
|
5
|
+
/** The active bank account. . */
|
|
6
|
+
BankAccountNumberCode: string;
|
|
7
|
+
/** Used to expose properties contained in the detail screen. */
|
|
8
|
+
BankDetail: BankDetail;
|
|
9
|
+
/** Unique identifier used to specify Bank Reconciliation. . */
|
|
10
|
+
BankID: number;
|
|
11
|
+
/** Indicate if include the sub account for the title account selected. */
|
|
12
|
+
BankIncludeSubaccounts: boolean;
|
|
13
|
+
/** The active bank sub account. Ignored if BankIncludeSubaccounts is set to true. . */
|
|
14
|
+
BankSubaccountNumberCode: string;
|
|
15
|
+
/** Fees amount. Required if StatementRecordFees is set to true. */
|
|
16
|
+
FeesAmount: number;
|
|
17
|
+
/** Fees general ledger account number code. Required if StatementRecordFees is set to true. */
|
|
18
|
+
FeesGeneralLedgerAccountNumberCode: string;
|
|
19
|
+
/** Fees general ledger sub account number code. Ignored if StatementRecordFees is set to false. */
|
|
20
|
+
FeesGeneralLedgerSubAccountNumberCode: string;
|
|
21
|
+
/** Fees agency code. Required if StatementRecordFees is set to true. */
|
|
22
|
+
FeesStructureAgencyCode: string;
|
|
23
|
+
/** Fees branch code. Ignored if StatementRecordFees is set to false. */
|
|
24
|
+
FeesStructureBranchCode: string;
|
|
25
|
+
/** Fees department code. Ignored if StatementRecordFees is set to false. */
|
|
26
|
+
FeesStructureDepartmentCode: string;
|
|
27
|
+
/** Fees profit center code. Ignored if StatementRecordFees is set to false. */
|
|
28
|
+
FeesStructureProfitCenterCode: string;
|
|
29
|
+
/** Interest amount. Required if StatementRecordInterest is set to true. */
|
|
30
|
+
InterestAmount: number;
|
|
31
|
+
/** Interest general ledger account number code. Required if StatementRecordInterest is set to true. */
|
|
32
|
+
InterestGeneralLedgerAccountNumberCode: string;
|
|
33
|
+
/** Interest general ledger sub account number code. Ignored if StatementRecordInterest is set to false. */
|
|
34
|
+
InterestGeneralLedgerSubAccountNumberCode: string;
|
|
35
|
+
/** Interest agency code. Required if StatementRecordInterest is set to true. */
|
|
36
|
+
InterestStructureAgencyCode: string;
|
|
37
|
+
/** Interest branch code. Ignored if StatementRecordInterest is set to false. */
|
|
38
|
+
InterestStructureBranchCode: string;
|
|
39
|
+
/** Interest department code. Ignored if StatementRecordInterest is set to false. */
|
|
40
|
+
InterestStructureDepartmentCode: string;
|
|
41
|
+
/** Interest profit center code. Ignored if StatementRecordInterest is set to false. */
|
|
42
|
+
InterestStructureProfitCenterCode: string;
|
|
43
|
+
/** Whether the object is read only. Items of read only applications cannot be modified. */
|
|
44
|
+
IsReadOnly: boolean;
|
|
45
|
+
/** Statement comments. */
|
|
46
|
+
StatementComments: string;
|
|
47
|
+
/** Statement date for the statement. */
|
|
48
|
+
StatementDate: string | Date;
|
|
49
|
+
/** Description of the bank statement. Required. */
|
|
50
|
+
StatementDescription: string;
|
|
51
|
+
/** Statement entered by user name. */
|
|
52
|
+
StatementEnteredBy: string;
|
|
53
|
+
/** Statement entered date. */
|
|
54
|
+
StatementEnteredDate: string | Date;
|
|
55
|
+
/** Indicate if an activity exists for the statement. */
|
|
56
|
+
StatementHasActivities: boolean;
|
|
57
|
+
/** If include future void offsets. */
|
|
58
|
+
StatementIncludeFutureVoidsOffsets: boolean;
|
|
59
|
+
/** Statement last updated by user name. */
|
|
60
|
+
StatementLastUpdatedBy: string;
|
|
61
|
+
/** Statement last updated date time. */
|
|
62
|
+
StatementLastUpdatedDate: string | Date;
|
|
63
|
+
/** Statement number for the statement. */
|
|
64
|
+
StatementNumber: string;
|
|
65
|
+
/** If record fees. Ignored if BankIncludeSubaccounts is set to true. */
|
|
66
|
+
StatementRecordFees: boolean;
|
|
67
|
+
/** If record interest. Ignored if BankIncludeSubaccounts is set to true. */
|
|
68
|
+
StatementRecordInterest: boolean;
|
|
69
|
+
/** Weather the statement's status is Finalized or Suspended. */
|
|
70
|
+
StatementStatus: 'Finalized' | 'Suspended' | string;
|
|
71
|
+
/** Used to prevent overwriting previously saved data. */
|
|
72
|
+
Timestamp: string;
|
|
73
|
+
}
|
|
74
|
+
export interface BankDetail {
|
|
75
|
+
/** Used to expose a collection of Checks and Withdrawals. */
|
|
76
|
+
CheckAndWithdrawalItems: BankDetailItem[];
|
|
77
|
+
/** Checks total.*/
|
|
78
|
+
ChecksAndWithdrawalsTotal: number;
|
|
79
|
+
/** Used to expose a collection of Deposits and Additions.*/
|
|
80
|
+
DepositAndAdditionItems: BankDetailItem[];
|
|
81
|
+
/** Deposits total.*/
|
|
82
|
+
DepositsAndAdditionsTotal: number;
|
|
83
|
+
/** Statement bank ending balance.*/
|
|
84
|
+
SummaryBankStatementEndingBalance: number;
|
|
85
|
+
/** Statement beginning balance.*/
|
|
86
|
+
SummaryBeginningBalance: number;
|
|
87
|
+
/** Statement difference.*/
|
|
88
|
+
SummaryDifference: number;
|
|
89
|
+
/** Statement net change.*/
|
|
90
|
+
SummaryNetChange: number;
|
|
91
|
+
/** Statement reconciliation ending balance.*/
|
|
92
|
+
SummaryReconciliationEndingBalance: number;
|
|
93
|
+
}
|
|
94
|
+
export interface BankDetailItem {
|
|
95
|
+
/** The accounting month of the entry.*/
|
|
96
|
+
AccountingMonth: string;
|
|
97
|
+
/** The bank account's amount of general ledger item.*/
|
|
98
|
+
Amount: number;
|
|
99
|
+
/** Unique identifier used to specify bank statement detail item.*/
|
|
100
|
+
BankDetailItemID: number;
|
|
101
|
+
/** The check number of general ledger item. Only applicable for Check and Withdrawal items.*/
|
|
102
|
+
CheckNumber: number;
|
|
103
|
+
/** The discription of general ledger item.*/
|
|
104
|
+
Description: string;
|
|
105
|
+
/** The effective date of the general ledger item.*/
|
|
106
|
+
EffectiveDate: string;
|
|
107
|
+
/** Entry type for example Disbursement. Used to inaddition to BankDetailItemID to uniquely identify the*/
|
|
108
|
+
EntryTypeCode: string;
|
|
109
|
+
/** Is selected.*/
|
|
110
|
+
IsSelected: boolean;
|
|
111
|
+
/** Pay to the order of general ledger item.*/
|
|
112
|
+
Payee: string;
|
|
113
|
+
/** The reference number of general ledger item.*/
|
|
114
|
+
ReferNumber: string;
|
|
115
|
+
/** The void reference number of general ledger item.*/
|
|
116
|
+
VoidReferNumber: string;
|
|
117
|
+
}
|
package/dist/services/Epic.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { CreatePaymentTransaction, CreateTransaction, FinanceTransaction, Financ
|
|
|
21
21
|
import { Vehicle } from '../models/epic/Vehicle';
|
|
22
22
|
import BaseEpicService from './BaseEpicService';
|
|
23
23
|
import { JobEpicService } from './JobEpicService';
|
|
24
|
+
import { GeneralLedgerReconcileBank } from "../models/epic/GeneralLedgerReconcileBank";
|
|
24
25
|
export default class EpicService extends BaseEpicService {
|
|
25
26
|
job: JobEpicService;
|
|
26
27
|
constructor(epicUrl: string | undefined, headers: any);
|
|
@@ -105,5 +106,8 @@ export default class EpicService extends BaseEpicService {
|
|
|
105
106
|
receiptApplyCreditsToDebits(receiptId: string, payload: object): Promise<Receipt[]>;
|
|
106
107
|
getPayableContracts(queryParams: object): Promise<PayableContract[]>;
|
|
107
108
|
getPayableContract(payableContractId: string, queryParams: object): Promise<PayableContract[]>;
|
|
109
|
+
getGeneralLedgerReconcileBanks(queryParams: object): Promise<GeneralLedgerReconcileBank[]>;
|
|
110
|
+
getGeneralLedgerReconcileBank(bankId: string): Promise<GeneralLedgerReconcileBank>;
|
|
111
|
+
createGeneralLedgerReconcileBank(payload: Partial<GeneralLedgerReconcileBank>): Promise<string | string[]>;
|
|
108
112
|
}
|
|
109
113
|
export type EpicServiceType = EpicService;
|
package/dist/services/Epic.js
CHANGED
|
@@ -275,5 +275,14 @@ class EpicService extends BaseEpicService_1.default {
|
|
|
275
275
|
async getPayableContract(payableContractId, queryParams) {
|
|
276
276
|
return this.get(`payableContract/${payableContractId}`, queryParams);
|
|
277
277
|
}
|
|
278
|
+
async getGeneralLedgerReconcileBanks(queryParams) {
|
|
279
|
+
return this.get('generalLedgerBank', queryParams);
|
|
280
|
+
}
|
|
281
|
+
async getGeneralLedgerReconcileBank(bankId) {
|
|
282
|
+
return this.getOne('generalLedgerBank', bankId);
|
|
283
|
+
}
|
|
284
|
+
async createGeneralLedgerReconcileBank(payload) {
|
|
285
|
+
return await this.post('generalLedgerBank', payload);
|
|
286
|
+
}
|
|
278
287
|
}
|
|
279
288
|
exports.default = EpicService;
|