@cemiar/cemiarlink-sdk 1.0.63 → 1.0.65

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.
@@ -18,8 +18,7 @@ const PROD_URLS = {
18
18
  };
19
19
  class EpicApiService {
20
20
  constructor(clientId, clientSecret, accountId, options) {
21
- var _a, _b, _c;
22
- var _d, _e;
21
+ var _a, _b, _c, _d, _e;
23
22
  this.epicApiToken = null;
24
23
  this.cemiarAuthToken = null;
25
24
  this.epicApiTokenPromise = null;
@@ -27,8 +26,8 @@ class EpicApiService {
27
26
  this.clientId = clientId;
28
27
  this.clientSecret = clientSecret;
29
28
  this.accountId = accountId;
30
- this.language = (_d = options.language) !== null && _d !== void 0 ? _d : 'en-US';
31
- this.apiEnv = (_e = options.apiEnv) !== null && _e !== void 0 ? _e : 'dev';
29
+ this.language = (_a = options.language) !== null && _a !== void 0 ? _a : 'en-US';
30
+ this.apiEnv = (_b = options.apiEnv) !== null && _b !== void 0 ? _b : 'dev';
32
31
  const urls = this.getEnvUrls(options.cemiarLink);
33
32
  this.cemiarAuthClient = axios_1.default.create({
34
33
  baseURL: urls.cemiarAuth,
@@ -36,8 +35,8 @@ class EpicApiService {
36
35
  'Content-Type': 'application/json',
37
36
  },
38
37
  });
39
- const cemiarLinkBaseURL = ((_a = options.cemiarLink) === null || _a === void 0 ? void 0 : _a.env) === 'local' ? options.cemiarLink.baseURL : urls.cemiarLink;
40
- const taskId = ((_b = options.cemiarLink) === null || _b === void 0 ? void 0 : _b.env) !== 'local' ? (_c = options.cemiarLink) === null || _c === void 0 ? void 0 : _c.taskId : undefined;
38
+ const cemiarLinkBaseURL = ((_c = options.cemiarLink) === null || _c === void 0 ? void 0 : _c.env) === 'local' ? options.cemiarLink.baseURL : urls.cemiarLink;
39
+ const taskId = ((_d = options.cemiarLink) === null || _d === void 0 ? void 0 : _d.env) !== 'local' ? (_e = options.cemiarLink) === null || _e === void 0 ? void 0 : _e.taskId : undefined;
41
40
  this.cemiarLinkClient = axios_1.default.create({
42
41
  baseURL: cemiarLinkBaseURL,
43
42
  headers: {
package/dist/index.js CHANGED
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
38
28
  Object.defineProperty(exports, "__esModule", { value: true });
39
29
  exports.Utils = exports.Exceptions = exports.Services = exports.Models = void 0;
40
30
  // Services
@@ -0,0 +1,503 @@
1
+ import { Address } from './Address';
2
+ import { OptionType } from './OptionType';
3
+ /** Epic SDK 2022.1 transaction models. DateTime values are serialized as strings. */
4
+ export declare namespace TransactionV2Model {
5
+ enum ComparisonType {
6
+ EqualTo = 0,
7
+ Containing = 1,
8
+ GreaterThan = 2,
9
+ LessThan = 3,
10
+ DoesNotEqual = 4
11
+ }
12
+ enum FutureItems {
13
+ Exclude = 0,
14
+ Only = 1,
15
+ Include = 2
16
+ }
17
+ enum Service {
18
+ Include = 0,
19
+ Only = 1,
20
+ Exclude = 2
21
+ }
22
+ enum TransactionStatus {
23
+ None = 0,
24
+ BalanceForward = 1,
25
+ OpenItem = 2
26
+ }
27
+ /**
28
+ * TransactionID overrides other filters; PolicyID overrides AccountID.
29
+ * Otherwise, AccountID and AccountTypeCode are required.
30
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/T_ASI_TAM_API_Data_UI_Transaction_TransactionFilter_2016_01.htm
31
+ */
32
+ interface TransactionFilter {
33
+ AccountID?: number;
34
+ AccountTypeCode?: string;
35
+ ARDueDateBegins?: string;
36
+ ARDueDateEnds?: string;
37
+ Balance?: number;
38
+ BalanceComparisonType?: ComparisonType;
39
+ BilledFromAccountCode?: string;
40
+ BilledFromName?: string;
41
+ BilledFromNameComparisonType?: ComparisonType;
42
+ BilledReservedCode?: string;
43
+ BilledReservedName?: string;
44
+ BilledReservedNameComparisonType?: ComparisonType;
45
+ BilledToAccountCode?: string;
46
+ BilledToName?: string;
47
+ BilledToNameComparisonType?: ComparisonType;
48
+ BillModeCode?: string;
49
+ BillNumber?: number;
50
+ BinderStatus?: string;
51
+ FutureItems?: FutureItems;
52
+ InstallmentGroup?: number;
53
+ InvoiceCreatedBegins?: string;
54
+ InvoiceCreatedEnds?: string;
55
+ InvoiceLastGeneratedDateBegins?: string;
56
+ InvoiceLastGeneratedDateEnds?: string;
57
+ InvoiceNumber?: number;
58
+ InvoiceStatus?: string;
59
+ ItemNumber?: number;
60
+ LateItemNumber?: number;
61
+ PaymentDateBegins?: string;
62
+ PaymentDateEnds?: string;
63
+ PaymentID?: string;
64
+ PolicyID?: number;
65
+ PolicyNumber?: string;
66
+ PolicyNumberComparisonType?: ComparisonType;
67
+ Service?: Service;
68
+ ServiceID?: number;
69
+ SiteID?: string;
70
+ SiteIDComparisonType?: ComparisonType;
71
+ TaxableItemNumber?: number;
72
+ TransactionCode?: string;
73
+ TransactionID?: number;
74
+ TransactionStatus?: TransactionStatus;
75
+ }
76
+ /**
77
+ * TransactionV1 SDK data returned by the transactionV2 endpoint.
78
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/T_ASI_TAM_API_Data_UI_Transaction_TransactionV1.htm
79
+ */
80
+ interface Transaction {
81
+ AccountID: number;
82
+ AccountTypeCode: string;
83
+ AttachToOption: OptionType;
84
+ AutoGenerateTaxes: boolean;
85
+ Balance: number;
86
+ BasicInstallmentOption: OptionType;
87
+ BillingValue: Billing;
88
+ BillNumber: number;
89
+ BillNumberOption: OptionType;
90
+ CommissionsValue: Commissions;
91
+ Description: string;
92
+ DetailValue: Detail;
93
+ Discrepancy: string;
94
+ IgnoreAgencyCommissionLessThanProducerBroker: boolean;
95
+ IgnoreFlatCommission: boolean;
96
+ InstallmentCycles: number | null;
97
+ InstallmentDownPayment: number | null;
98
+ InstallmentNumber: number | null;
99
+ InstallmentPlanID: string;
100
+ InstallmentSequenceNumber: number | null;
101
+ InstallmentsValue: InstallmentItem[];
102
+ InstallmentType: string;
103
+ InvoicePaymentOption: OptionType;
104
+ InvoiceValue: Invoice;
105
+ IsReadOnly: boolean;
106
+ ItemNumber: string;
107
+ PackagePolicyReplaceFullAnnualizedCommission: number | null;
108
+ PackagePolicyReplaceFullAnnualizedPremium: number | null;
109
+ PaymentInstallmentItems: PaymentInstallmentItem[];
110
+ PaymentLineID: number | null;
111
+ PaymentMethodValue: PaymentMethod;
112
+ PaymentValue: Payment;
113
+ PolicyID: number;
114
+ PolicyTypeCode: string;
115
+ ServiceID: number | null;
116
+ ServiceItemizationID: number | null;
117
+ TransactionAmount: number;
118
+ TransactionCode: string;
119
+ TransactionID: number;
120
+ UpdateInstallmentsOption: OptionType;
121
+ }
122
+ /**
123
+ * Insert_Transaction accepts the same TransactionV1 data object as retrieval.
124
+ * Field requirements and defaults depend on the transaction code, attachment,
125
+ * billing mode, and whether this is an invoice or payment transaction.
126
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Insert_Transaction.htm
127
+ */
128
+ type CreateTransaction = Omit<Transaction, 'TransactionID'>;
129
+ /**
130
+ * Fetch the existing Transaction, modify it, and submit the complete object.
131
+ * TransactionID and Description are required on update. TransactionAmount and
132
+ * CommissionsValue are ignored; use RevisePremium and AdjustCommission instead.
133
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Update_Transaction.htm
134
+ */
135
+ type UpdateTransaction = Partial<Transaction>;
136
+ /**
137
+ * Call before AdjustCommission and preserve the returned default values.
138
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Get_Transaction_DefaultActionAdjustCommission.htm
139
+ */
140
+ type GetDefaultAdjustCommissionRequest = Pick<Transaction, 'TransactionID'>;
141
+ type GetDefaultAdjustCommissionResult = AdjustCommission[];
142
+ /**
143
+ * Call before RevisePremium and preserve the returned default values.
144
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Get_Transaction_DefaultActionRevisePremium.htm
145
+ */
146
+ type GetDefaultRevisePremiumRequest = Pick<Transaction, 'TransactionID'>;
147
+ type GetDefaultRevisePremiumResult = RevisePremium[];
148
+ /**
149
+ * Call before ReverseTransaction and preserve the returned default values.
150
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Get_Transaction_DefaultActionReverseTransaction.htm
151
+ */
152
+ type GetDefaultReverseRequest = Pick<Transaction, 'TransactionID'>;
153
+ type GetDefaultReverseResult = ReverseTransaction[];
154
+ /**
155
+ * Submit one object obtained from GetDefaultAdjustCommissionResult.
156
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Action_Transaction_AdjustCommission.htm
157
+ */
158
+ interface AdjustCommission {
159
+ AssociatedAccountID: number;
160
+ AssociatedAccountTypeCode: string;
161
+ CommissionSplits: AdjustCommissionSplitItem[];
162
+ IgnoreAgencyCommissionLessThanProducerBroker: boolean;
163
+ IgnoreFlatCommission: boolean;
164
+ IgnoreInstallmentsThatCannotBeUpdated: boolean;
165
+ TransactionID: number;
166
+ UpdateInstallmentsOption: OptionType;
167
+ }
168
+ interface AdjustCommissionSplitItem {
169
+ AgencyCommissionAmount: number;
170
+ AgencyCommissionPercentage: number;
171
+ AgencyCommissionTypeCode: string;
172
+ AgencySplitAmount: number;
173
+ CompanyPayableDueDate: string | null;
174
+ IssuingCompanyLookupCode: string;
175
+ LineID: number;
176
+ PremiumPayableContractID: number;
177
+ PremiumPayableLookupCode: string;
178
+ PremiumPayableTypeCode: string;
179
+ ProducerBrokerCommissions: AdjustCommissionProducerBrokerCommissionItem[];
180
+ TransactionCompanyNumber: number;
181
+ TransactionDetailNumber: number;
182
+ }
183
+ enum AdjustCommissionProducerBrokerCommissionItemFlags {
184
+ View = 0,
185
+ Insert = 1,
186
+ Update = 2,
187
+ Delete = 3
188
+ }
189
+ interface AdjustCommissionProducerBrokerCommissionItem {
190
+ CommissionAmount: number;
191
+ CommissionID: number;
192
+ CommissionPercentage: number;
193
+ CommissionTypeCode: string;
194
+ ContractID: number | null;
195
+ Flag: AdjustCommissionProducerBrokerCommissionItemFlags;
196
+ LookupCode: string;
197
+ OrderNumber: number;
198
+ PayableDueDate: string;
199
+ ProducerBrokerCode: string;
200
+ ProductionCredit: number;
201
+ ShareRevenueAgencyCode: string;
202
+ ShareRevenueAgencyID: number;
203
+ ShareRevenueAgencyName: string;
204
+ ShareRevenueAmount: number | null;
205
+ ShareRevenueBranchCode: string;
206
+ ShareRevenueBranchID: number;
207
+ ShareRevenueBranchName: string;
208
+ ShareRevenueDepartmentCode: string;
209
+ ShareRevenueDepartmentID: number;
210
+ ShareRevenueDepartmentName: string;
211
+ ShareRevenuePercent: number | null;
212
+ ShareRevenueProfitCenterCode: string;
213
+ ShareRevenueProfitCenterID: number;
214
+ ShareRevenueProfitCenterName: string;
215
+ }
216
+ /**
217
+ * Submit one object obtained from GetDefaultRevisePremiumResult.
218
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Action_Transaction_RevisePremium.htm
219
+ */
220
+ interface RevisePremium {
221
+ AssociatedAccountID: number;
222
+ AssociatedAccountTypeCode: string;
223
+ AutomaticallyReverseSplitReceivablesInstallments: boolean;
224
+ DetailAccountingMonth: string;
225
+ DetailARDueDate: string;
226
+ DetailGenerateInvoiceDate: string;
227
+ DetailProductionMonth: string;
228
+ IgnoreFlatCommission: boolean;
229
+ IgnorePayableContractPayableDueDate: boolean;
230
+ IgnorePayableDueDate: boolean;
231
+ InstallmentsOption: OptionType;
232
+ InstallmentsValue: RevisePremiumInstallments;
233
+ IsInstallment: boolean;
234
+ IsSplitReceivable: boolean;
235
+ SplitReceivableValue: RevisePremiumSplitReceivable;
236
+ Timestamp: string | null;
237
+ TransactionAmount: number;
238
+ TransactionCode: string;
239
+ TransactionDescription: string;
240
+ TransactionID: number;
241
+ TransactionReallocateOption: OptionType;
242
+ }
243
+ enum RevisePremiumReviseInstallmentsBasedOn {
244
+ Summary = 0,
245
+ SplitReceivable = 1
246
+ }
247
+ interface RevisePremiumInstallments {
248
+ InstallmentSummary: RevisePremiumInstallmentSummaryItem[];
249
+ ReviseInstallmentsBasedOn: RevisePremiumReviseInstallmentsBasedOn;
250
+ SplitReceivable: RevisePremiumSplitReceivableItem[];
251
+ TotalInstallmentAmount: number;
252
+ }
253
+ enum RevisePremiumSummaryItemFlags {
254
+ View = 0,
255
+ Revise = 1
256
+ }
257
+ interface RevisePremiumInstallmentSummaryItem {
258
+ AccountingMonth: string;
259
+ ARDueDate: string;
260
+ Description: string;
261
+ EffectiveDate: string;
262
+ Flag: RevisePremiumSummaryItemFlags;
263
+ GenerateInvoiceDate: string;
264
+ OriginalAmount: number;
265
+ PlanSequenceNumber: number;
266
+ RevisedAmount: number;
267
+ TransactionCode: string;
268
+ TransactionID: number;
269
+ }
270
+ enum RevisePremiumSplitReceivableItemFlags {
271
+ View = 0,
272
+ Revise = 1
273
+ }
274
+ interface RevisePremiumSplitReceivableItem {
275
+ AccountingMonth: string;
276
+ AccountLookupCode: string;
277
+ ARDueDate: string;
278
+ Contact: string;
279
+ EffectiveDate: string;
280
+ Flag: RevisePremiumSplitReceivableItemFlags;
281
+ GenerateInvoiceDate: string;
282
+ OriginalAmount: number;
283
+ ParentReceivable: boolean;
284
+ PlanSequenceNumber: number;
285
+ ReceivableIndex: number;
286
+ RevisedAmount: number;
287
+ TransactionCode: string;
288
+ TransactionDescription: string;
289
+ TransactionID: number;
290
+ }
291
+ interface RevisePremiumSplitReceivable {
292
+ SendInvoiceTo: RevisePremiumSendInvoiceToItem[];
293
+ TotalBillingSummaryAgencyIncome: number;
294
+ TotalBillingSummaryCompanyNetPremium: number;
295
+ TotalBillingSummaryProducerBrokerExpense: number;
296
+ }
297
+ interface RevisePremiumSendInvoiceToItem {
298
+ AccountLookupCode: string;
299
+ AccountType: string;
300
+ Address: Address;
301
+ AddressDescription: string;
302
+ Contact: string;
303
+ LoanNumber: string;
304
+ OriginalAmount: number;
305
+ OriginalPercentage: number;
306
+ ParentReceivable: boolean;
307
+ ReallocationAmount: number;
308
+ ReallocationPercentage: number;
309
+ ReallocationTypeCode: string;
310
+ SiteID: string;
311
+ TransactionID: number;
312
+ }
313
+ /**
314
+ * Submit one object obtained from GetDefaultReverseResult. Set an item's Flag
315
+ * to Reverse to reverse it; View leaves the item unchanged.
316
+ * @see https://help.appliedsystems.com/Help/EpicSDK/2022.1/html/M_ASI_TAM_API_Web_EpicSDK_Transaction_Transaction_2019_01_Action_Transaction_ReverseTransaction.htm
317
+ */
318
+ interface ReverseTransaction {
319
+ AssociatedAccountID: number;
320
+ AssociatedAccountTypeCode: string;
321
+ ItemsToReverse: ReverseTransactionItem[];
322
+ Reason: string;
323
+ ReasonDetails: string;
324
+ TransactionID: number;
325
+ }
326
+ enum ReverseTransactionReverseItemFlags {
327
+ View = 0,
328
+ Reverse = 1
329
+ }
330
+ interface ReverseTransactionItem {
331
+ DetailAccountingMonth: string;
332
+ DetailCloseGovernmentPayable: boolean;
333
+ DetailClosePrBrPayable: boolean;
334
+ DetailClosePremiumPayable: boolean;
335
+ DetailDescription: string;
336
+ Flag: ReverseTransactionReverseItemFlags;
337
+ ParentFinanceTransactionID: number;
338
+ ParentTransactionID: number;
339
+ TransactionID: number;
340
+ }
341
+ interface Billing {
342
+ AccountingMonth: string;
343
+ AgencyCode: string;
344
+ ARDueDate: string;
345
+ BillingModeOption: OptionType;
346
+ Binder: boolean | null;
347
+ BranchCode: string;
348
+ DepartmentCode: string;
349
+ EffectiveDate: string;
350
+ GeneralLedgerAccount: string;
351
+ GenerateInvoiceDate: string;
352
+ ProductionMonth: string;
353
+ ProfitCenterCode: string;
354
+ Reason: string;
355
+ ReasonDetails: string;
356
+ }
357
+ interface Commissions {
358
+ RevenueDeferralSchedule: RevenueScheduleItem[];
359
+ Splits: SplitItem[];
360
+ }
361
+ interface RevenueScheduleItem {
362
+ AccountingMonth: string;
363
+ Amount: number;
364
+ Percentage: number;
365
+ RevenueDeferralScheduleTypeCode: string;
366
+ }
367
+ interface SplitItem {
368
+ AgencyCommissionAmount: number;
369
+ AgencyCommissionPercentage: number;
370
+ AgencyCommissionTypeCode: string;
371
+ AgencySplitAmount: number;
372
+ CompanyPayableDueDate: string | null;
373
+ /** 0 = View, 1 = Insert. */
374
+ Flag: 0 | 1;
375
+ IssuingCompanyLookupCode: string;
376
+ LineID: number;
377
+ MultiCarrierScheduleID: number;
378
+ PremiumPayableContractID: number;
379
+ PremiumPayableLookupCode: string;
380
+ PremiumPayableTypeCode: string;
381
+ ProducerBrokerCommissions: ProducerBrokerCommissionItem[];
382
+ }
383
+ interface ProducerBrokerCommissionItem {
384
+ CommissionAmount: number;
385
+ CommissionID: number;
386
+ CommissionPercentage: number;
387
+ CommissionTypeCode: string;
388
+ ContractID: number | null;
389
+ DefaultProducerBrokerCommissionID: number | null;
390
+ /** 0 = View, 1 = Insert. */
391
+ Flag: 0 | 1;
392
+ LookupCode: string;
393
+ OrderNumber: number;
394
+ PayableDueDate: string;
395
+ ProducerBrokerCode: string;
396
+ ProductionCredit: number;
397
+ ShareRevenueAgencyCode: string;
398
+ ShareRevenueAgencyID: number;
399
+ ShareRevenueAgencyName: string;
400
+ ShareRevenueAmount: number | null;
401
+ ShareRevenueBranchCode: string;
402
+ ShareRevenueBranchID: number;
403
+ ShareRevenueBranchName: string;
404
+ ShareRevenueDepartmentCode: string;
405
+ ShareRevenueDepartmentID: number;
406
+ ShareRevenueDepartmentName: string;
407
+ ShareRevenuePercent: number | null;
408
+ ShareRevenueProfitCenterCode: string;
409
+ ShareRevenueProfitCenterID: number;
410
+ ShareRevenueProfitCenterName: string;
411
+ }
412
+ interface Detail {
413
+ Balance: number;
414
+ DetailItemsValue: DetailItem[];
415
+ }
416
+ interface DetailItem {
417
+ Amount: number;
418
+ ARDueDate: string;
419
+ Description: string;
420
+ TransactionCode: string;
421
+ TransactionDetailNumber: number;
422
+ }
423
+ interface InstallmentItem {
424
+ AccountingMonth: string;
425
+ Amount: number;
426
+ ARDueDate: string;
427
+ Description: string;
428
+ EffectiveDate: string;
429
+ GenerateInvoice: boolean;
430
+ GenerateInvoiceDate: string;
431
+ InstallmentNumber: number;
432
+ InstallmentType: string;
433
+ InvoiceGrouping: string;
434
+ InvoiceGroupingExistingInvoiceNumber: number | null;
435
+ InvoiceMessage: string;
436
+ ProductionMonth: string;
437
+ Transaction: string;
438
+ }
439
+ interface Invoice {
440
+ SendInvoiceToOption: OptionType;
441
+ SendInvoiceTos: SendInvoiceToItem[];
442
+ }
443
+ interface SendInvoiceToItem {
444
+ AccountLookupCode: string;
445
+ Address: Address;
446
+ AddressDescription: string;
447
+ BillBrokerNet: boolean | null;
448
+ Contact: string;
449
+ ContactID: number | null;
450
+ DeliveryMethod: string;
451
+ Email: string;
452
+ FaxCountryCode: string;
453
+ FaxExtension: string;
454
+ FaxNumber: string;
455
+ GenerateInvoice: boolean;
456
+ InvoiceGrouping: string;
457
+ InvoiceGroupingExistingInvoiceNumber: number | null;
458
+ InvoiceMessage: string;
459
+ InvoiceNumber: number | null;
460
+ InvoiceToType: string;
461
+ LoanNumber: string;
462
+ SiteID: string;
463
+ SplitReceivableAmount: number | null;
464
+ SplitReceivablePercent: number | null;
465
+ }
466
+ interface PaymentInstallmentItem {
467
+ AccountingMonth: string;
468
+ Amount: number | null;
469
+ Description: string;
470
+ MethodID: number | null;
471
+ PaymentDate: string | null;
472
+ PaymentID: string;
473
+ PaymentReceivedDate: string | null;
474
+ ProductionMonth: string;
475
+ }
476
+ interface PaymentMethod {
477
+ AccountLookupCode: string;
478
+ ContactID: number | null;
479
+ ContactName: string;
480
+ PaymentOptionID: number | null;
481
+ TypeCode: string;
482
+ }
483
+ interface Payment {
484
+ AccountingMonth: string;
485
+ AgencyCode: string;
486
+ BranchCode: string;
487
+ DepartmentCode: string;
488
+ GeneralLedgerCleared: string;
489
+ GeneralLedgerReferNumber: string;
490
+ MethodID: number | null;
491
+ PaymentDate: string | null;
492
+ PaymentID: string;
493
+ PaymentReceivedDate: string | null;
494
+ ProductionMonth: string;
495
+ ProfitCenterCode: string;
496
+ ReceivingAgencyCode: string;
497
+ ReceivingBranchCode: string;
498
+ ReversalVoidItemReversalNumber: string;
499
+ ReversalVoidReasonDetails: string;
500
+ ReversalVoidReasonID: number | null;
501
+ ReversalVoidReferNumber: string;
502
+ }
503
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionV2Model = void 0;
4
+ /** Epic SDK 2022.1 transaction models. DateTime values are serialized as strings. */
5
+ var TransactionV2Model;
6
+ (function (TransactionV2Model) {
7
+ let ComparisonType;
8
+ (function (ComparisonType) {
9
+ ComparisonType[ComparisonType["EqualTo"] = 0] = "EqualTo";
10
+ ComparisonType[ComparisonType["Containing"] = 1] = "Containing";
11
+ ComparisonType[ComparisonType["GreaterThan"] = 2] = "GreaterThan";
12
+ ComparisonType[ComparisonType["LessThan"] = 3] = "LessThan";
13
+ ComparisonType[ComparisonType["DoesNotEqual"] = 4] = "DoesNotEqual";
14
+ })(ComparisonType = TransactionV2Model.ComparisonType || (TransactionV2Model.ComparisonType = {}));
15
+ let FutureItems;
16
+ (function (FutureItems) {
17
+ FutureItems[FutureItems["Exclude"] = 0] = "Exclude";
18
+ FutureItems[FutureItems["Only"] = 1] = "Only";
19
+ FutureItems[FutureItems["Include"] = 2] = "Include";
20
+ })(FutureItems = TransactionV2Model.FutureItems || (TransactionV2Model.FutureItems = {}));
21
+ let Service;
22
+ (function (Service) {
23
+ Service[Service["Include"] = 0] = "Include";
24
+ Service[Service["Only"] = 1] = "Only";
25
+ Service[Service["Exclude"] = 2] = "Exclude";
26
+ })(Service = TransactionV2Model.Service || (TransactionV2Model.Service = {}));
27
+ let TransactionStatus;
28
+ (function (TransactionStatus) {
29
+ TransactionStatus[TransactionStatus["None"] = 0] = "None";
30
+ TransactionStatus[TransactionStatus["BalanceForward"] = 1] = "BalanceForward";
31
+ TransactionStatus[TransactionStatus["OpenItem"] = 2] = "OpenItem";
32
+ })(TransactionStatus = TransactionV2Model.TransactionStatus || (TransactionV2Model.TransactionStatus = {}));
33
+ let AdjustCommissionProducerBrokerCommissionItemFlags;
34
+ (function (AdjustCommissionProducerBrokerCommissionItemFlags) {
35
+ AdjustCommissionProducerBrokerCommissionItemFlags[AdjustCommissionProducerBrokerCommissionItemFlags["View"] = 0] = "View";
36
+ AdjustCommissionProducerBrokerCommissionItemFlags[AdjustCommissionProducerBrokerCommissionItemFlags["Insert"] = 1] = "Insert";
37
+ AdjustCommissionProducerBrokerCommissionItemFlags[AdjustCommissionProducerBrokerCommissionItemFlags["Update"] = 2] = "Update";
38
+ AdjustCommissionProducerBrokerCommissionItemFlags[AdjustCommissionProducerBrokerCommissionItemFlags["Delete"] = 3] = "Delete";
39
+ })(AdjustCommissionProducerBrokerCommissionItemFlags = TransactionV2Model.AdjustCommissionProducerBrokerCommissionItemFlags || (TransactionV2Model.AdjustCommissionProducerBrokerCommissionItemFlags = {}));
40
+ let RevisePremiumReviseInstallmentsBasedOn;
41
+ (function (RevisePremiumReviseInstallmentsBasedOn) {
42
+ RevisePremiumReviseInstallmentsBasedOn[RevisePremiumReviseInstallmentsBasedOn["Summary"] = 0] = "Summary";
43
+ RevisePremiumReviseInstallmentsBasedOn[RevisePremiumReviseInstallmentsBasedOn["SplitReceivable"] = 1] = "SplitReceivable";
44
+ })(RevisePremiumReviseInstallmentsBasedOn = TransactionV2Model.RevisePremiumReviseInstallmentsBasedOn || (TransactionV2Model.RevisePremiumReviseInstallmentsBasedOn = {}));
45
+ let RevisePremiumSummaryItemFlags;
46
+ (function (RevisePremiumSummaryItemFlags) {
47
+ RevisePremiumSummaryItemFlags[RevisePremiumSummaryItemFlags["View"] = 0] = "View";
48
+ RevisePremiumSummaryItemFlags[RevisePremiumSummaryItemFlags["Revise"] = 1] = "Revise";
49
+ })(RevisePremiumSummaryItemFlags = TransactionV2Model.RevisePremiumSummaryItemFlags || (TransactionV2Model.RevisePremiumSummaryItemFlags = {}));
50
+ let RevisePremiumSplitReceivableItemFlags;
51
+ (function (RevisePremiumSplitReceivableItemFlags) {
52
+ RevisePremiumSplitReceivableItemFlags[RevisePremiumSplitReceivableItemFlags["View"] = 0] = "View";
53
+ RevisePremiumSplitReceivableItemFlags[RevisePremiumSplitReceivableItemFlags["Revise"] = 1] = "Revise";
54
+ })(RevisePremiumSplitReceivableItemFlags = TransactionV2Model.RevisePremiumSplitReceivableItemFlags || (TransactionV2Model.RevisePremiumSplitReceivableItemFlags = {}));
55
+ let ReverseTransactionReverseItemFlags;
56
+ (function (ReverseTransactionReverseItemFlags) {
57
+ ReverseTransactionReverseItemFlags[ReverseTransactionReverseItemFlags["View"] = 0] = "View";
58
+ ReverseTransactionReverseItemFlags[ReverseTransactionReverseItemFlags["Reverse"] = 1] = "Reverse";
59
+ })(ReverseTransactionReverseItemFlags = TransactionV2Model.ReverseTransactionReverseItemFlags || (TransactionV2Model.ReverseTransactionReverseItemFlags = {}));
60
+ })(TransactionV2Model || (exports.TransactionV2Model = TransactionV2Model = {}));
@@ -28,6 +28,7 @@ export * from './Response';
28
28
  export * from './ServiceSummary';
29
29
  export * from './ServicingContact';
30
30
  export * from './Transaction';
31
+ export * from './TransactionV2';
31
32
  export * from './Vehicle';
32
33
  export * from './Certificate';
33
34
  export * from './CriteriaValue';
@@ -44,6 +44,7 @@ __exportStar(require("./Response"), exports);
44
44
  __exportStar(require("./ServiceSummary"), exports);
45
45
  __exportStar(require("./ServicingContact"), exports);
46
46
  __exportStar(require("./Transaction"), exports);
47
+ __exportStar(require("./TransactionV2"), exports);
47
48
  __exportStar(require("./Vehicle"), exports);
48
49
  __exportStar(require("./Certificate"), exports);
49
50
  __exportStar(require("./CriteriaValue"), exports);
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
35
25
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
27
  };