@d19n/youfibre-odin-sdk 1.0.197 → 1.0.199
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/CreateRecontractOrderItemDto.d.ts +15 -0
- package/dist/entities-v2/BillingAdjustment.d.ts +19 -19
- package/dist/entities-v2/BillingAdjustment.js +16 -16
- package/package.json +1 -1
- package/src/actions-v2/CreateRecontractOrderItemDto.ts +15 -0
- package/src/entities-v2/BillingAdjustment.ts +23 -23
|
@@ -2,9 +2,24 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
|
|
|
2
2
|
interface CreateRecontractOrderItemProperties {
|
|
3
3
|
ProductType?: string;
|
|
4
4
|
ProductCategory?: string;
|
|
5
|
+
ProductCustomerType?: string;
|
|
6
|
+
ProductRef?: string;
|
|
7
|
+
ProductPbRelationId?: string;
|
|
8
|
+
Description?: string;
|
|
5
9
|
Quantity?: number;
|
|
6
10
|
UnitPrice?: string;
|
|
11
|
+
TotalPrice?: string;
|
|
12
|
+
Taxable?: string;
|
|
13
|
+
TaxRate?: number;
|
|
14
|
+
TaxIncluded?: string;
|
|
15
|
+
DiscountType?: string;
|
|
16
|
+
DiscountValue?: string;
|
|
17
|
+
DiscountLength?: number;
|
|
18
|
+
Discount2Type?: string;
|
|
19
|
+
Discount2Value?: string;
|
|
20
|
+
Discount2Length?: number;
|
|
7
21
|
NetworkServiceId?: string;
|
|
22
|
+
ActivationStatus?: string;
|
|
8
23
|
}
|
|
9
24
|
export declare class CreateRecontractOrderItemDto extends OdinRecordCreateDto<CreateRecontractOrderItemProperties> {
|
|
10
25
|
readonly actionName: string;
|
|
@@ -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
|
}
|
package/package.json
CHANGED
|
@@ -28,9 +28,24 @@ OdinRecordLinkCreatedEvent
|
|
|
28
28
|
interface CreateRecontractOrderItemProperties {
|
|
29
29
|
ProductType?: string,
|
|
30
30
|
ProductCategory?: string,
|
|
31
|
+
ProductCustomerType?: string,
|
|
32
|
+
ProductRef?: string,
|
|
33
|
+
ProductPbRelationId?: string,
|
|
34
|
+
Description?: string,
|
|
31
35
|
Quantity?: number,
|
|
32
36
|
UnitPrice?: string,
|
|
37
|
+
TotalPrice?: string,
|
|
38
|
+
Taxable?: string,
|
|
39
|
+
TaxRate?: number,
|
|
40
|
+
TaxIncluded?: string,
|
|
41
|
+
DiscountType?: string,
|
|
42
|
+
DiscountValue?: string,
|
|
43
|
+
DiscountLength?: number,
|
|
44
|
+
Discount2Type?: string,
|
|
45
|
+
Discount2Value?: string,
|
|
46
|
+
Discount2Length?: number,
|
|
33
47
|
NetworkServiceId?: string,
|
|
48
|
+
ActivationStatus?: string,
|
|
34
49
|
}
|
|
35
50
|
export class CreateRecontractOrderItemDto extends OdinRecordCreateDto<CreateRecontractOrderItemProperties> {
|
|
36
51
|
public readonly actionName: string = 'CreateRecontractOrderItem';
|
|
@@ -20,14 +20,6 @@ export enum BillingAdjustmentEntityTypes {
|
|
|
20
20
|
DEFAULT = 'DEFAULT',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export enum BillingAdjustmentDiscountType {
|
|
24
|
-
AMOUNT = 'AMOUNT',
|
|
25
|
-
PERCENT = 'PERCENT',
|
|
26
|
-
}
|
|
27
|
-
export enum BillingAdjustmentProrationType {
|
|
28
|
-
CHARGE = 'CHARGE',
|
|
29
|
-
CREDIT = 'CREDIT',
|
|
30
|
-
}
|
|
31
23
|
export enum BillingAdjustmentReason {
|
|
32
24
|
BILLING_DAY_ADJUSMENT_LEGACY = 'BILLING_DAY_ADJUSTMENT',
|
|
33
25
|
BILLING_DATE_CHANGE = 'BILLING_DATE_CHANGE',
|
|
@@ -43,43 +35,51 @@ export enum BillingAdjustmentReason {
|
|
|
43
35
|
SALES_MISSELLING_ADJUSTMENT = 'SALES_MISSELLING_ADJUSTMENT',
|
|
44
36
|
OUTAGE_COMPENSATION = 'OUTAGE_COMPENSATION',
|
|
45
37
|
}
|
|
38
|
+
export enum BillingAdjustmentDiscountType {
|
|
39
|
+
AMOUNT = 'AMOUNT',
|
|
40
|
+
PERCENT = 'PERCENT',
|
|
41
|
+
}
|
|
42
|
+
export enum BillingAdjustmentProrationType {
|
|
43
|
+
CHARGE = 'CHARGE',
|
|
44
|
+
CREDIT = 'CREDIT',
|
|
45
|
+
}
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
export enum BillingAdjustmentPropertyKeys {
|
|
49
|
-
|
|
49
|
+
FreePeriodLength = 'FreePeriodLength',
|
|
50
|
+
Reason = 'Reason',
|
|
50
51
|
DiscountLength = 'DiscountLength',
|
|
51
52
|
DiscountType = 'DiscountType',
|
|
52
53
|
DiscountValue = 'DiscountValue',
|
|
53
|
-
FreePeriodLength = 'FreePeriodLength',
|
|
54
|
-
ProrationBillableDays = 'ProrationBillableDays',
|
|
55
54
|
ProrationType = 'ProrationType',
|
|
56
|
-
|
|
57
|
-
Source = 'Source',
|
|
55
|
+
ProrationBillableDays = 'ProrationBillableDays',
|
|
58
56
|
Title = 'Title',
|
|
57
|
+
Description = 'Description',
|
|
58
|
+
Source = 'Source',
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
export interface BillingAdjustmentProperties {
|
|
63
|
-
//
|
|
64
|
-
|
|
63
|
+
//The number of future invoices that should be free of charge
|
|
64
|
+
FreePeriodLength: number
|
|
65
|
+
//the billing adjustment reason
|
|
66
|
+
Reason: BillingAdjustmentReason
|
|
65
67
|
//the length of the discount
|
|
66
68
|
DiscountLength: number
|
|
67
69
|
//the type of discount
|
|
68
70
|
DiscountType: BillingAdjustmentDiscountType
|
|
69
71
|
//the value of the discount to be applied
|
|
70
72
|
DiscountValue: number
|
|
71
|
-
//The number of future invoices that should be free of charge
|
|
72
|
-
FreePeriodLength: number
|
|
73
|
-
//The number of days being prorated
|
|
74
|
-
ProrationBillableDays: number
|
|
75
73
|
//proration type charge or credit
|
|
76
74
|
ProrationType: BillingAdjustmentProrationType
|
|
77
|
-
//
|
|
78
|
-
|
|
79
|
-
//Source of payment date update
|
|
80
|
-
Source: string
|
|
75
|
+
//The number of days being prorated
|
|
76
|
+
ProrationBillableDays: number
|
|
81
77
|
//Billing Adjustment Title
|
|
82
78
|
Title: string
|
|
79
|
+
//Describe why this billing adjustment being applied
|
|
80
|
+
Description: string
|
|
81
|
+
//Source of payment date update
|
|
82
|
+
Source: string
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|