@d19n/youfibre-odin-sdk 1.0.190 → 1.0.192
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.
- package/dist/actions-v2/CancelPaymentDto.d.ts +18 -0
- package/dist/actions-v2/CancelPaymentDto.js +21 -0
- package/dist/actions-v2/ConfirmPaymentSuccessDto.d.ts +6 -7
- package/dist/actions-v2/ConfirmPaymentSuccessDto.js +4 -3
- package/dist/actions-v2/FailPaymentDto.d.ts +6 -7
- package/dist/actions-v2/FailPaymentDto.js +4 -3
- package/dist/actions-v2/KnowledgeArticleUserGuideCreateDto.d.ts +15 -0
- package/dist/actions-v2/KnowledgeArticleUserGuideCreateDto.js +18 -0
- package/dist/actions-v2/SetPaymentProcessingDto.d.ts +18 -0
- package/dist/actions-v2/SetPaymentProcessingDto.js +21 -0
- package/dist/actions-v2/VoidPaymentDto.d.ts +6 -7
- package/dist/actions-v2/VoidPaymentDto.js +4 -3
- package/dist/entities-v2/BillingAdjustment.d.ts +19 -19
- package/dist/entities-v2/BillingAdjustment.js +16 -16
- package/dist/entities-v2/CreditNote.d.ts +6 -6
- package/dist/entities-v2/CreditNote.js +3 -3
- package/dist/entities-v2/Visit.d.ts +60 -60
- package/dist/entities-v2/Visit.js +49 -49
- package/package.json +1 -1
- package/src/actions-v2/CancelPaymentDto.ts +62 -0
- package/src/actions-v2/ConfirmPaymentSuccessDto.ts +19 -11
- package/src/actions-v2/FailPaymentDto.ts +19 -11
- package/src/actions-v2/KnowledgeArticleUserGuideCreateDto.ts +49 -0
- package/src/actions-v2/SetPaymentProcessingDto.ts +62 -0
- package/src/actions-v2/VoidPaymentDto.ts +19 -11
- package/src/entities-v2/BillingAdjustment.ts +23 -23
- package/src/entities-v2/CreditNote.ts +9 -9
- package/src/entities-v2/Visit.ts +75 -75
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
export interface CancelPaymentMessage extends OdinRecordUpdatedEvent<CancelPaymentDto, {}> {
|
|
3
|
+
}
|
|
4
|
+
export declare class CancelPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
|
+
readonly actionName: string;
|
|
6
|
+
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
8
|
+
constructor(record: OdinRecord<any> | {
|
|
9
|
+
id: string;
|
|
10
|
+
entity: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}, options?: {
|
|
13
|
+
journeyId?: string;
|
|
14
|
+
});
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
|
+
}
|
|
18
|
+
export declare const ROUTING_KEY_CANCEL_PAYMENT = "CancelPayment";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CANCEL_PAYMENT = exports.CancelPaymentDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class CancelPaymentDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, options) {
|
|
7
|
+
super({
|
|
8
|
+
id: record.id,
|
|
9
|
+
entity: record.entity,
|
|
10
|
+
type: record.type,
|
|
11
|
+
properties: {},
|
|
12
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
+
});
|
|
14
|
+
this.actionName = 'CancelPayment';
|
|
15
|
+
this.schemaActionId = 'ef0f9467-2a31-4f8b-9272-5624de7a4d8d';
|
|
16
|
+
this.stageKey = 'PaymentStageCancelled';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.CancelPaymentDto = CancelPaymentDto;
|
|
20
|
+
CancelPaymentDto.stepClasses = [];
|
|
21
|
+
exports.ROUTING_KEY_CANCEL_PAYMENT = 'CancelPayment';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
-
interface
|
|
2
|
+
export interface ConfirmPaymentSuccessMessage extends OdinRecordUpdatedEvent<ConfirmPaymentSuccessDto, {}> {
|
|
3
3
|
}
|
|
4
|
-
export declare class ConfirmPaymentSuccessDto extends OdinRecordUpdateDto<
|
|
4
|
+
export declare class ConfirmPaymentSuccessDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
5
|
readonly actionName: string;
|
|
6
6
|
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
7
8
|
constructor(record: OdinRecord<any> | {
|
|
8
9
|
id: string;
|
|
9
10
|
entity: string;
|
|
10
11
|
type?: string;
|
|
11
|
-
},
|
|
12
|
+
}, options?: {
|
|
12
13
|
journeyId?: string;
|
|
13
|
-
stageKey?: string;
|
|
14
14
|
});
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
17
|
}
|
|
18
18
|
export declare const ROUTING_KEY_CONFIRM_PAYMENT_SUCCESS = "ConfirmPaymentSuccess";
|
|
19
|
-
export {};
|
|
@@ -3,18 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ROUTING_KEY_CONFIRM_PAYMENT_SUCCESS = exports.ConfirmPaymentSuccessDto = void 0;
|
|
4
4
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
5
|
class ConfirmPaymentSuccessDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
-
constructor(record,
|
|
6
|
+
constructor(record, options) {
|
|
7
7
|
super({
|
|
8
8
|
id: record.id,
|
|
9
9
|
entity: record.entity,
|
|
10
10
|
type: record.type,
|
|
11
|
-
properties,
|
|
11
|
+
properties: {},
|
|
12
12
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
14
13
|
});
|
|
15
14
|
this.actionName = 'ConfirmPaymentSuccess';
|
|
16
15
|
this.schemaActionId = 'eea6c593-3619-4c06-8ea7-997af2f3fba2';
|
|
16
|
+
this.stageKey = 'PaymentStageProcessed';
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.ConfirmPaymentSuccessDto = ConfirmPaymentSuccessDto;
|
|
20
|
+
ConfirmPaymentSuccessDto.stepClasses = [];
|
|
20
21
|
exports.ROUTING_KEY_CONFIRM_PAYMENT_SUCCESS = 'ConfirmPaymentSuccess';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
-
interface
|
|
2
|
+
export interface FailPaymentMessage extends OdinRecordUpdatedEvent<FailPaymentDto, {}> {
|
|
3
3
|
}
|
|
4
|
-
export declare class FailPaymentDto extends OdinRecordUpdateDto<
|
|
4
|
+
export declare class FailPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
5
|
readonly actionName: string;
|
|
6
6
|
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
7
8
|
constructor(record: OdinRecord<any> | {
|
|
8
9
|
id: string;
|
|
9
10
|
entity: string;
|
|
10
11
|
type?: string;
|
|
11
|
-
},
|
|
12
|
+
}, options?: {
|
|
12
13
|
journeyId?: string;
|
|
13
|
-
stageKey?: string;
|
|
14
14
|
});
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
17
|
}
|
|
18
18
|
export declare const ROUTING_KEY_FAIL_PAYMENT = "FailPayment";
|
|
19
|
-
export {};
|
|
@@ -3,18 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ROUTING_KEY_FAIL_PAYMENT = exports.FailPaymentDto = void 0;
|
|
4
4
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
5
|
class FailPaymentDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
-
constructor(record,
|
|
6
|
+
constructor(record, options) {
|
|
7
7
|
super({
|
|
8
8
|
id: record.id,
|
|
9
9
|
entity: record.entity,
|
|
10
10
|
type: record.type,
|
|
11
|
-
properties,
|
|
11
|
+
properties: {},
|
|
12
12
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
14
13
|
});
|
|
15
14
|
this.actionName = 'FailPayment';
|
|
16
15
|
this.schemaActionId = 'd9d6cf25-8cf9-4e6d-a7e2-44f88543d853';
|
|
16
|
+
this.stageKey = 'PaymentStageError';
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.FailPaymentDto = FailPaymentDto;
|
|
20
|
+
FailPaymentDto.stepClasses = [];
|
|
20
21
|
exports.ROUTING_KEY_FAIL_PAYMENT = 'FailPayment';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
interface KnowledgeArticleUserGuideCreateProperties {
|
|
3
|
+
Status: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class KnowledgeArticleUserGuideCreateDto extends OdinRecordCreateDto<KnowledgeArticleUserGuideCreateProperties> {
|
|
6
|
+
readonly actionName: string;
|
|
7
|
+
readonly schemaActionId: string;
|
|
8
|
+
constructor(properties: KnowledgeArticleUserGuideCreateProperties, options?: {
|
|
9
|
+
journeyId?: string;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export interface KnowledgeArticleUserGuideCreateMessage extends OdinRecordCreatedEvent<KnowledgeArticleUserGuideCreateDto, KnowledgeArticleUserGuideCreateProperties> {
|
|
13
|
+
}
|
|
14
|
+
export declare const ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = "KnowledgeArticleUserGuideCreate";
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = exports.KnowledgeArticleUserGuideCreateDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class KnowledgeArticleUserGuideCreateDto extends core_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties, options) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'SupportModule:KnowledgeArticle',
|
|
9
|
+
type: 'USER_GUIDE',
|
|
10
|
+
properties,
|
|
11
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
12
|
+
});
|
|
13
|
+
this.actionName = 'KnowledgeArticleUserGuideCreate';
|
|
14
|
+
this.schemaActionId = 'a1fad5dd-541c-4063-b39a-c0d3d777a105';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.KnowledgeArticleUserGuideCreateDto = KnowledgeArticleUserGuideCreateDto;
|
|
18
|
+
exports.ROUTING_KEY_KNOWLEDGE_ARTICLE_USER_GUIDE_CREATE = 'KnowledgeArticleUserGuideCreate';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
+
export interface SetPaymentProcessingMessage extends OdinRecordUpdatedEvent<SetPaymentProcessingDto, {}> {
|
|
3
|
+
}
|
|
4
|
+
export declare class SetPaymentProcessingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
|
+
readonly actionName: string;
|
|
6
|
+
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
8
|
+
constructor(record: OdinRecord<any> | {
|
|
9
|
+
id: string;
|
|
10
|
+
entity: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}, options?: {
|
|
13
|
+
journeyId?: string;
|
|
14
|
+
});
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
|
+
}
|
|
18
|
+
export declare const ROUTING_KEY_SET_PAYMENT_PROCESSING = "SetPaymentProcessing";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_SET_PAYMENT_PROCESSING = exports.SetPaymentProcessingDto = void 0;
|
|
4
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
|
+
class SetPaymentProcessingDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, options) {
|
|
7
|
+
super({
|
|
8
|
+
id: record.id,
|
|
9
|
+
entity: record.entity,
|
|
10
|
+
type: record.type,
|
|
11
|
+
properties: {},
|
|
12
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
+
});
|
|
14
|
+
this.actionName = 'SetPaymentProcessing';
|
|
15
|
+
this.schemaActionId = '861cabb4-13dc-4d3b-9fd1-ab5077df2fd9';
|
|
16
|
+
this.stageKey = 'PaymentStageProcessing';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SetPaymentProcessingDto = SetPaymentProcessingDto;
|
|
20
|
+
SetPaymentProcessingDto.stepClasses = [];
|
|
21
|
+
exports.ROUTING_KEY_SET_PAYMENT_PROCESSING = 'SetPaymentProcessing';
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
2
|
-
interface
|
|
2
|
+
export interface VoidPaymentMessage extends OdinRecordUpdatedEvent<VoidPaymentDto, {}> {
|
|
3
3
|
}
|
|
4
|
-
export declare class VoidPaymentDto extends OdinRecordUpdateDto<
|
|
4
|
+
export declare class VoidPaymentDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
5
5
|
readonly actionName: string;
|
|
6
6
|
readonly schemaActionId: string;
|
|
7
|
+
readonly stageKey: string;
|
|
7
8
|
constructor(record: OdinRecord<any> | {
|
|
8
9
|
id: string;
|
|
9
10
|
entity: string;
|
|
10
11
|
type?: string;
|
|
11
|
-
},
|
|
12
|
+
}, options?: {
|
|
12
13
|
journeyId?: string;
|
|
13
|
-
stageKey?: string;
|
|
14
14
|
});
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
static readonly stepClasses: readonly [];
|
|
16
|
+
steps: [];
|
|
17
17
|
}
|
|
18
18
|
export declare const ROUTING_KEY_VOID_PAYMENT = "VoidPayment";
|
|
19
|
-
export {};
|
|
@@ -3,18 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ROUTING_KEY_VOID_PAYMENT = exports.VoidPaymentDto = void 0;
|
|
4
4
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
5
|
class VoidPaymentDto extends core_1.OdinRecordUpdateDto {
|
|
6
|
-
constructor(record,
|
|
6
|
+
constructor(record, options) {
|
|
7
7
|
super({
|
|
8
8
|
id: record.id,
|
|
9
9
|
entity: record.entity,
|
|
10
10
|
type: record.type,
|
|
11
|
-
properties,
|
|
11
|
+
properties: {},
|
|
12
12
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
13
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
14
13
|
});
|
|
15
14
|
this.actionName = 'VoidPayment';
|
|
16
15
|
this.schemaActionId = '77689b76-4a08-4fa3-abec-8594c19768fd';
|
|
16
|
+
this.stageKey = 'PaymentStageVoided';
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.VoidPaymentDto = VoidPaymentDto;
|
|
20
|
+
VoidPaymentDto.stepClasses = [];
|
|
20
21
|
exports.ROUTING_KEY_VOID_PAYMENT = 'VoidPayment';
|
|
@@ -6,14 +6,6 @@ import { FileProperties } from './File';
|
|
|
6
6
|
export declare enum BillingAdjustmentEntityTypes {
|
|
7
7
|
DEFAULT = "DEFAULT"
|
|
8
8
|
}
|
|
9
|
-
export declare enum BillingAdjustmentDiscountType {
|
|
10
|
-
AMOUNT = "AMOUNT",
|
|
11
|
-
PERCENT = "PERCENT"
|
|
12
|
-
}
|
|
13
|
-
export declare enum BillingAdjustmentProrationType {
|
|
14
|
-
CHARGE = "CHARGE",
|
|
15
|
-
CREDIT = "CREDIT"
|
|
16
|
-
}
|
|
17
9
|
export declare enum BillingAdjustmentReason {
|
|
18
10
|
BILLING_DAY_ADJUSMENT_LEGACY = "BILLING_DAY_ADJUSTMENT",
|
|
19
11
|
BILLING_DATE_CHANGE = "BILLING_DATE_CHANGE",
|
|
@@ -29,29 +21,37 @@ export declare enum BillingAdjustmentReason {
|
|
|
29
21
|
SALES_MISSELLING_ADJUSTMENT = "SALES_MISSELLING_ADJUSTMENT",
|
|
30
22
|
OUTAGE_COMPENSATION = "OUTAGE_COMPENSATION"
|
|
31
23
|
}
|
|
24
|
+
export declare enum BillingAdjustmentDiscountType {
|
|
25
|
+
AMOUNT = "AMOUNT",
|
|
26
|
+
PERCENT = "PERCENT"
|
|
27
|
+
}
|
|
28
|
+
export declare enum BillingAdjustmentProrationType {
|
|
29
|
+
CHARGE = "CHARGE",
|
|
30
|
+
CREDIT = "CREDIT"
|
|
31
|
+
}
|
|
32
32
|
export declare enum BillingAdjustmentPropertyKeys {
|
|
33
|
-
|
|
33
|
+
FreePeriodLength = "FreePeriodLength",
|
|
34
|
+
Reason = "Reason",
|
|
34
35
|
DiscountLength = "DiscountLength",
|
|
35
36
|
DiscountType = "DiscountType",
|
|
36
37
|
DiscountValue = "DiscountValue",
|
|
37
|
-
FreePeriodLength = "FreePeriodLength",
|
|
38
|
-
ProrationBillableDays = "ProrationBillableDays",
|
|
39
38
|
ProrationType = "ProrationType",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
ProrationBillableDays = "ProrationBillableDays",
|
|
40
|
+
Title = "Title",
|
|
41
|
+
Description = "Description",
|
|
42
|
+
Source = "Source"
|
|
43
43
|
}
|
|
44
44
|
export interface BillingAdjustmentProperties {
|
|
45
|
-
|
|
45
|
+
FreePeriodLength: number;
|
|
46
|
+
Reason: BillingAdjustmentReason;
|
|
46
47
|
DiscountLength: number;
|
|
47
48
|
DiscountType: BillingAdjustmentDiscountType;
|
|
48
49
|
DiscountValue: number;
|
|
49
|
-
FreePeriodLength: number;
|
|
50
|
-
ProrationBillableDays: number;
|
|
51
50
|
ProrationType: BillingAdjustmentProrationType;
|
|
52
|
-
|
|
53
|
-
Source: string;
|
|
51
|
+
ProrationBillableDays: number;
|
|
54
52
|
Title: string;
|
|
53
|
+
Description: string;
|
|
54
|
+
Source: string;
|
|
55
55
|
}
|
|
56
56
|
export declare class BillingAdjustment extends OdinRecord<BillingAdjustmentProperties> {
|
|
57
57
|
entity: 'OrderModule:BillingAdjustment';
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_FILE_CREATED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_NOTE_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_NOTE_CREATED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_DELETED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_UPDATED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_CREATED = exports.BillingAdjustment = exports.BillingAdjustmentPropertyKeys = exports.
|
|
3
|
+
exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_FILE_CREATED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_NOTE_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADJUSTMENT_NOTE_CREATED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_DELETED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_UPDATED = exports.ROUTING_KEY_BILLING_ADJUSTMENT_CREATED = exports.BillingAdjustment = exports.BillingAdjustmentPropertyKeys = exports.BillingAdjustmentProrationType = exports.BillingAdjustmentDiscountType = exports.BillingAdjustmentReason = exports.BillingAdjustmentEntityTypes = void 0;
|
|
4
4
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
5
5
|
var BillingAdjustmentEntityTypes;
|
|
6
6
|
(function (BillingAdjustmentEntityTypes) {
|
|
7
7
|
BillingAdjustmentEntityTypes["DEFAULT"] = "DEFAULT";
|
|
8
8
|
})(BillingAdjustmentEntityTypes = exports.BillingAdjustmentEntityTypes || (exports.BillingAdjustmentEntityTypes = {}));
|
|
9
|
-
var BillingAdjustmentDiscountType;
|
|
10
|
-
(function (BillingAdjustmentDiscountType) {
|
|
11
|
-
BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
|
|
12
|
-
BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
|
|
13
|
-
})(BillingAdjustmentDiscountType = exports.BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = {}));
|
|
14
|
-
var BillingAdjustmentProrationType;
|
|
15
|
-
(function (BillingAdjustmentProrationType) {
|
|
16
|
-
BillingAdjustmentProrationType["CHARGE"] = "CHARGE";
|
|
17
|
-
BillingAdjustmentProrationType["CREDIT"] = "CREDIT";
|
|
18
|
-
})(BillingAdjustmentProrationType = exports.BillingAdjustmentProrationType || (exports.BillingAdjustmentProrationType = {}));
|
|
19
9
|
var BillingAdjustmentReason;
|
|
20
10
|
(function (BillingAdjustmentReason) {
|
|
21
11
|
BillingAdjustmentReason["BILLING_DAY_ADJUSMENT_LEGACY"] = "BILLING_DAY_ADJUSTMENT";
|
|
@@ -32,18 +22,28 @@ var BillingAdjustmentReason;
|
|
|
32
22
|
BillingAdjustmentReason["SALES_MISSELLING_ADJUSTMENT"] = "SALES_MISSELLING_ADJUSTMENT";
|
|
33
23
|
BillingAdjustmentReason["OUTAGE_COMPENSATION"] = "OUTAGE_COMPENSATION";
|
|
34
24
|
})(BillingAdjustmentReason = exports.BillingAdjustmentReason || (exports.BillingAdjustmentReason = {}));
|
|
25
|
+
var BillingAdjustmentDiscountType;
|
|
26
|
+
(function (BillingAdjustmentDiscountType) {
|
|
27
|
+
BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
|
|
28
|
+
BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
|
|
29
|
+
})(BillingAdjustmentDiscountType = exports.BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = {}));
|
|
30
|
+
var BillingAdjustmentProrationType;
|
|
31
|
+
(function (BillingAdjustmentProrationType) {
|
|
32
|
+
BillingAdjustmentProrationType["CHARGE"] = "CHARGE";
|
|
33
|
+
BillingAdjustmentProrationType["CREDIT"] = "CREDIT";
|
|
34
|
+
})(BillingAdjustmentProrationType = exports.BillingAdjustmentProrationType || (exports.BillingAdjustmentProrationType = {}));
|
|
35
35
|
var BillingAdjustmentPropertyKeys;
|
|
36
36
|
(function (BillingAdjustmentPropertyKeys) {
|
|
37
|
-
BillingAdjustmentPropertyKeys["
|
|
37
|
+
BillingAdjustmentPropertyKeys["FreePeriodLength"] = "FreePeriodLength";
|
|
38
|
+
BillingAdjustmentPropertyKeys["Reason"] = "Reason";
|
|
38
39
|
BillingAdjustmentPropertyKeys["DiscountLength"] = "DiscountLength";
|
|
39
40
|
BillingAdjustmentPropertyKeys["DiscountType"] = "DiscountType";
|
|
40
41
|
BillingAdjustmentPropertyKeys["DiscountValue"] = "DiscountValue";
|
|
41
|
-
BillingAdjustmentPropertyKeys["FreePeriodLength"] = "FreePeriodLength";
|
|
42
|
-
BillingAdjustmentPropertyKeys["ProrationBillableDays"] = "ProrationBillableDays";
|
|
43
42
|
BillingAdjustmentPropertyKeys["ProrationType"] = "ProrationType";
|
|
44
|
-
BillingAdjustmentPropertyKeys["
|
|
45
|
-
BillingAdjustmentPropertyKeys["Source"] = "Source";
|
|
43
|
+
BillingAdjustmentPropertyKeys["ProrationBillableDays"] = "ProrationBillableDays";
|
|
46
44
|
BillingAdjustmentPropertyKeys["Title"] = "Title";
|
|
45
|
+
BillingAdjustmentPropertyKeys["Description"] = "Description";
|
|
46
|
+
BillingAdjustmentPropertyKeys["Source"] = "Source";
|
|
47
47
|
})(BillingAdjustmentPropertyKeys = exports.BillingAdjustmentPropertyKeys || (exports.BillingAdjustmentPropertyKeys = {}));
|
|
48
48
|
class BillingAdjustment extends core_1.OdinRecord {
|
|
49
49
|
}
|
|
@@ -28,20 +28,20 @@ export declare enum CreditNoteReason {
|
|
|
28
28
|
ONE_TIME_CREDIT = "ONE_TIME_CREDIT"
|
|
29
29
|
}
|
|
30
30
|
export declare enum CreditNotePropertyKeys {
|
|
31
|
-
Amount = "Amount",
|
|
32
31
|
Description = "Description",
|
|
32
|
+
Amount = "Amount",
|
|
33
|
+
Status = "Status",
|
|
33
34
|
InvoiceRef = "InvoiceRef",
|
|
34
|
-
Reason = "Reason",
|
|
35
35
|
ReasonCode = "ReasonCode",
|
|
36
|
-
|
|
36
|
+
Reason = "Reason"
|
|
37
37
|
}
|
|
38
38
|
export interface CreditNoteProperties {
|
|
39
|
-
Amount: number;
|
|
40
39
|
Description: string;
|
|
40
|
+
Amount: number;
|
|
41
|
+
Status: string;
|
|
41
42
|
InvoiceRef: string;
|
|
42
|
-
Reason: CreditNoteReason;
|
|
43
43
|
ReasonCode: string;
|
|
44
|
-
|
|
44
|
+
Reason: CreditNoteReason;
|
|
45
45
|
}
|
|
46
46
|
export declare class CreditNote extends OdinRecord<CreditNoteProperties> {
|
|
47
47
|
entity: 'BillingModule:CreditNote';
|
|
@@ -30,12 +30,12 @@ var CreditNoteReason;
|
|
|
30
30
|
})(CreditNoteReason = exports.CreditNoteReason || (exports.CreditNoteReason = {}));
|
|
31
31
|
var CreditNotePropertyKeys;
|
|
32
32
|
(function (CreditNotePropertyKeys) {
|
|
33
|
-
CreditNotePropertyKeys["Amount"] = "Amount";
|
|
34
33
|
CreditNotePropertyKeys["Description"] = "Description";
|
|
34
|
+
CreditNotePropertyKeys["Amount"] = "Amount";
|
|
35
|
+
CreditNotePropertyKeys["Status"] = "Status";
|
|
35
36
|
CreditNotePropertyKeys["InvoiceRef"] = "InvoiceRef";
|
|
36
|
-
CreditNotePropertyKeys["Reason"] = "Reason";
|
|
37
37
|
CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
|
|
38
|
-
CreditNotePropertyKeys["
|
|
38
|
+
CreditNotePropertyKeys["Reason"] = "Reason";
|
|
39
39
|
})(CreditNotePropertyKeys = exports.CreditNotePropertyKeys || (exports.CreditNotePropertyKeys = {}));
|
|
40
40
|
class CreditNote extends core_1.OdinRecord {
|
|
41
41
|
}
|
|
@@ -8,8 +8,38 @@ import { AppointmentProperties } from './Appointment';
|
|
|
8
8
|
export declare enum VisitEntityTypes {
|
|
9
9
|
DEFAULT = "DEFAULT"
|
|
10
10
|
}
|
|
11
|
+
export declare enum VisitOutcome {
|
|
12
|
+
NI_NO_REASON = "NI_NO_REASON",
|
|
13
|
+
KNOCKED_NO_ANSWER = "KNOCKED_NO_ANSWER",
|
|
14
|
+
NOT_INTERESTED = "NOT_INTERESTED",
|
|
15
|
+
COMMUNICATION_CHALLENGE = "COMMUNICATION_CHALLENGE",
|
|
16
|
+
CALL_COME_BACK_LATER = "COME_BACK_LATER",
|
|
17
|
+
LANDLORD_DECISION_REQUIRED = "LANDLORD_DECISSION_REQUIRED",
|
|
18
|
+
NI_ALREADY_HAVE_FF = "NI_ALREADY_HAVE_FF",
|
|
19
|
+
NI_HAPPY_WITH_PROVIDER = "NI_HAPPY_WITH_PROVIDER",
|
|
20
|
+
NI_NO_BUNDLE_OPTION = "NI_NO_BUNDLE_OPTION",
|
|
21
|
+
DO_NOT_KNOCK = "DO_NOT_KNOCK",
|
|
22
|
+
NI_MOVING_HOME_NON_YF_AREA = "NI_MOVING_HOME",
|
|
23
|
+
NI_OLDER_DEMOGRAPHIC = "NI_OLDER_DEMOGRAPHIC",
|
|
24
|
+
NI_TOO_EXPENSIVE = "NI_TOO_EXPENSIVE",
|
|
25
|
+
NO_ACCESS_TO_PROPERTY = "NO_ACCESS_TO_PROPERTY",
|
|
26
|
+
NO_COLD_CALL_STICKER = "NO_COLD_CALL_STICKER",
|
|
27
|
+
VULNERABLE_PERSON = "VULNERABLE_PERSON"
|
|
28
|
+
}
|
|
29
|
+
export declare enum VisitNotInterestedReason {
|
|
30
|
+
MOVING_HOUSE_NON_YF_AREA = "MOVING_HOUSE",
|
|
31
|
+
NO_BUNDLE_TV_SPORTS_ETC = "NO_BUNDLE",
|
|
32
|
+
OLDER_DEMOGRAPHIC = "OLDER_DEMOGRAPHIC",
|
|
33
|
+
HAPPY_WITH_CURRENT_PROVIDER = "HAPPY_WITH_CURRENT_PROVIDER",
|
|
34
|
+
NO_REASON_GIVEN = "NO_REASON_GIVEN",
|
|
35
|
+
TOO_EXPENSIVE = "TOO_EXPENSIVE"
|
|
36
|
+
}
|
|
11
37
|
export declare enum VisitAgeBracket {
|
|
12
38
|
}
|
|
39
|
+
export declare enum VisitStatus {
|
|
40
|
+
TODO = "TODO",
|
|
41
|
+
DONE = "DONE"
|
|
42
|
+
}
|
|
13
43
|
export declare enum VisitCurrentProvider {
|
|
14
44
|
BT = "BT",
|
|
15
45
|
CUCKOO = "CUCKOO",
|
|
@@ -34,79 +64,49 @@ export declare enum VisitInterestedReason {
|
|
|
34
64
|
NEEDS_TO_CHECK_CONTRACT = "NEEDS_TO_CHECK_CONTRACT",
|
|
35
65
|
PITCHED_MISSED = "PITCHED_MISSED"
|
|
36
66
|
}
|
|
37
|
-
export declare enum VisitNotInterestedReason {
|
|
38
|
-
MOVING_HOUSE_NON_YF_AREA = "MOVING_HOUSE",
|
|
39
|
-
NO_BUNDLE_TV_SPORTS_ETC = "NO_BUNDLE",
|
|
40
|
-
OLDER_DEMOGRAPHIC = "OLDER_DEMOGRAPHIC",
|
|
41
|
-
HAPPY_WITH_CURRENT_PROVIDER = "HAPPY_WITH_CURRENT_PROVIDER",
|
|
42
|
-
NO_REASON_GIVEN = "NO_REASON_GIVEN",
|
|
43
|
-
TOO_EXPENSIVE = "TOO_EXPENSIVE"
|
|
44
|
-
}
|
|
45
|
-
export declare enum VisitOutcome {
|
|
46
|
-
NI_NO_REASON = "NI_NO_REASON",
|
|
47
|
-
KNOCKED_NO_ANSWER = "KNOCKED_NO_ANSWER",
|
|
48
|
-
NOT_INTERESTED = "NOT_INTERESTED",
|
|
49
|
-
COMMUNICATION_CHALLENGE = "COMMUNICATION_CHALLENGE",
|
|
50
|
-
CALL_COME_BACK_LATER = "COME_BACK_LATER",
|
|
51
|
-
LANDLORD_DECISION_REQUIRED = "LANDLORD_DECISSION_REQUIRED",
|
|
52
|
-
NI_ALREADY_HAVE_FF = "NI_ALREADY_HAVE_FF",
|
|
53
|
-
NI_HAPPY_WITH_PROVIDER = "NI_HAPPY_WITH_PROVIDER",
|
|
54
|
-
NI_NO_BUNDLE_OPTION = "NI_NO_BUNDLE_OPTION",
|
|
55
|
-
DO_NOT_KNOCK = "DO_NOT_KNOCK",
|
|
56
|
-
NI_MOVING_HOME_NON_YF_AREA = "NI_MOVING_HOME",
|
|
57
|
-
NI_OLDER_DEMOGRAPHIC = "NI_OLDER_DEMOGRAPHIC",
|
|
58
|
-
NI_TOO_EXPENSIVE = "NI_TOO_EXPENSIVE",
|
|
59
|
-
NO_ACCESS_TO_PROPERTY = "NO_ACCESS_TO_PROPERTY",
|
|
60
|
-
NO_COLD_CALL_STICKER = "NO_COLD_CALL_STICKER",
|
|
61
|
-
VULNERABLE_PERSON = "VULNERABLE_PERSON"
|
|
62
|
-
}
|
|
63
|
-
export declare enum VisitStatus {
|
|
64
|
-
TODO = "TODO",
|
|
65
|
-
DONE = "DONE"
|
|
66
|
-
}
|
|
67
67
|
export declare enum VisitPropertyKeys {
|
|
68
|
+
FollowUpDate = "FollowUpDate",
|
|
69
|
+
Umprn = "UMPRN",
|
|
70
|
+
Udprn = "UDPRN",
|
|
71
|
+
Outcome = "Outcome",
|
|
72
|
+
NotInterestedReason = "NotInterestedReason",
|
|
73
|
+
L2PolygonId = "L2PolygonId",
|
|
68
74
|
AgeBracket = "AgeBracket",
|
|
69
|
-
|
|
70
|
-
ContractEndDate = "ContractEndDate",
|
|
75
|
+
FullAddress = "FullAddress",
|
|
71
76
|
Coordinates = "Coordinates",
|
|
72
|
-
|
|
73
|
-
CurrentProvider = "CurrentProvider",
|
|
77
|
+
Status = "Status",
|
|
74
78
|
DataSetId = "DataSetId",
|
|
75
|
-
|
|
79
|
+
Longitude = "Longitude",
|
|
80
|
+
Latitude = "Latitude",
|
|
81
|
+
CurrentProvider = "CurrentProvider",
|
|
82
|
+
ContractEndDate = "ContractEndDate",
|
|
83
|
+
CurrentPrice = "CurrentPrice",
|
|
76
84
|
DownloadSpeed = "DownloadSpeed",
|
|
77
|
-
|
|
78
|
-
FullAddress = "FullAddress",
|
|
85
|
+
DoNotKnockReason = "DoNotKnockReason",
|
|
79
86
|
InterestedReason = "InterestedReason",
|
|
80
|
-
|
|
81
|
-
Latitude = "Latitude",
|
|
82
|
-
Longitude = "Longitude",
|
|
83
|
-
NotInterestedReason = "NotInterestedReason",
|
|
84
|
-
Outcome = "Outcome",
|
|
85
|
-
Status = "Status",
|
|
86
|
-
Udprn = "UDPRN",
|
|
87
|
-
Umprn = "UMPRN"
|
|
87
|
+
Comments = "Comments"
|
|
88
88
|
}
|
|
89
89
|
export interface VisitProperties {
|
|
90
|
+
FollowUpDate: Date;
|
|
91
|
+
Umprn: number;
|
|
92
|
+
Udprn: number;
|
|
93
|
+
Outcome: VisitOutcome;
|
|
94
|
+
NotInterestedReason: VisitNotInterestedReason;
|
|
95
|
+
L2PolygonId: number;
|
|
90
96
|
AgeBracket: VisitAgeBracket;
|
|
91
|
-
|
|
92
|
-
ContractEndDate: Date;
|
|
97
|
+
FullAddress: string;
|
|
93
98
|
Coordinates: string;
|
|
94
|
-
|
|
95
|
-
CurrentProvider: VisitCurrentProvider;
|
|
99
|
+
Status: VisitStatus;
|
|
96
100
|
DataSetId: string;
|
|
97
|
-
|
|
101
|
+
Longitude: string;
|
|
102
|
+
Latitude: string;
|
|
103
|
+
CurrentProvider: VisitCurrentProvider;
|
|
104
|
+
ContractEndDate: Date;
|
|
105
|
+
CurrentPrice: number;
|
|
98
106
|
DownloadSpeed: string;
|
|
99
|
-
|
|
100
|
-
FullAddress: string;
|
|
107
|
+
DoNotKnockReason: VisitDoNotKnockReason;
|
|
101
108
|
InterestedReason: VisitInterestedReason;
|
|
102
|
-
|
|
103
|
-
Latitude: string;
|
|
104
|
-
Longitude: string;
|
|
105
|
-
NotInterestedReason: VisitNotInterestedReason;
|
|
106
|
-
Outcome: VisitOutcome;
|
|
107
|
-
Status: VisitStatus;
|
|
108
|
-
Udprn: number;
|
|
109
|
-
Umprn: number;
|
|
109
|
+
Comments: string;
|
|
110
110
|
}
|
|
111
111
|
export declare class Visit extends OdinRecord<VisitProperties> {
|
|
112
112
|
entity: 'CrmModule:Visit';
|