@bharatbxhipment/xhipment-models-v2 1.0.153 → 1.0.154
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/schemas/charge-code-reasons/charge-code-reason.interface.d.ts +6 -0
- package/dist/schemas/charge-code-reasons/charge-code-reason.interface.d.ts.map +1 -1
- package/dist/schemas/charge-code-reasons/charge-code-reason.model.d.ts.map +1 -1
- package/dist/schemas/charge-code-reasons/charge-code-reason.model.js +5 -0
- package/dist/schemas/charge-code-reasons/charge-code-reason.model.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
export interface IFieldReference {
|
|
3
|
+
model?: string;
|
|
4
|
+
fieldPath?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
2
7
|
export interface IChargeCodeReason {
|
|
3
8
|
_id?: Types.ObjectId;
|
|
4
9
|
vendorChargeCodeId?: Types.ObjectId;
|
|
5
10
|
reason?: string;
|
|
11
|
+
fieldReferences?: IFieldReference[];
|
|
6
12
|
salesDecision?: 'charge_to_customer' | 'absorb' | 'send_for_manual_scrutiny';
|
|
7
13
|
vendorDecision?: 'dispute' | 'accept' | 'send_for_manual_scrutiny';
|
|
8
14
|
controlType?: 'controllable' | 'uncontrollable';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge-code-reason.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,oBAAoB,GAAG,QAAQ,GAAG,0BAA0B,CAAC;IAC7E,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,0BAA0B,CAAC;IACnE,WAAW,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAChD,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACjC,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
1
|
+
{"version":3,"file":"charge-code-reason.interface.d.ts","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACrB,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IACpC,aAAa,CAAC,EAAE,oBAAoB,GAAG,QAAQ,GAAG,0BAA0B,CAAC;IAC7E,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,0BAA0B,CAAC;IACnE,WAAW,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAChD,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACjC,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge-code-reason.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"charge-code-reason.model.d.ts","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;;EA6BjC,CAAC"}
|
|
@@ -5,6 +5,11 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
exports.chargeCodeReasonSchema = new mongoose_1.Schema({
|
|
6
6
|
vendorChargeCodeId: { type: mongoose_1.Schema.Types.ObjectId, ref: 'VendorChargeCodes' },
|
|
7
7
|
reason: { type: String },
|
|
8
|
+
fieldReferences: [{
|
|
9
|
+
model: { type: String },
|
|
10
|
+
fieldPath: { type: String },
|
|
11
|
+
label: { type: String },
|
|
12
|
+
}],
|
|
8
13
|
salesDecision: {
|
|
9
14
|
type: String,
|
|
10
15
|
enum: ['charge_to_customer', 'absorb', 'send_for_manual_scrutiny'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge-code-reason.model.js","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,sBAAsB,GAAG,IAAI,iBAAM,CAAoB;IAClE,kBAAkB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,mBAAmB,EAAE;IAC7E,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,oBAAoB,EAAE,QAAQ,EAAE,0BAA0B,CAAC;KACnE;IACD,cAAc,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,0BAA0B,CAAC;KACxD;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;KACzC;IACD,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IAC/C,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1C,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE;IACjE,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAC/B,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACvD,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;CACxD,EAAE;IACD,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"charge-code-reason.model.js","sourceRoot":"","sources":["../../../src/schemas/charge-code-reasons/charge-code-reason.model.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAGrB,QAAA,sBAAsB,GAAG,IAAI,iBAAM,CAAoB;IAClE,kBAAkB,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,mBAAmB,EAAE;IAC7E,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC;YAChB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACxB,CAAC;IACF,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,oBAAoB,EAAE,QAAQ,EAAE,0BAA0B,CAAC;KACnE;IACD,cAAc,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,0BAA0B,CAAC;KACxD;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;KACzC;IACD,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IAC/C,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1C,eAAe,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE;IACjE,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAC/B,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACvD,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;CACxD,EAAE;IACD,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC"}
|