@dynamatix/gb-schemas 1.1.0 → 1.2.0
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
|
+
import { SortCode } from '../value-objects/sort-code';
|
|
2
3
|
declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
3
4
|
createdAt: NativeDate;
|
|
4
5
|
updatedAt: NativeDate;
|
|
@@ -15,7 +16,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
15
16
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
16
17
|
nameOfAccountHolder?: string | null | undefined;
|
|
17
18
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
18
|
-
sortCode?:
|
|
19
|
+
sortCode?: SortCode | null | undefined;
|
|
19
20
|
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
20
21
|
createdAt: NativeDate;
|
|
21
22
|
updatedAt: NativeDate;
|
|
@@ -32,7 +33,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
32
33
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
33
34
|
nameOfAccountHolder?: string | null | undefined;
|
|
34
35
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
35
|
-
sortCode?:
|
|
36
|
+
sortCode?: SortCode | null | undefined;
|
|
36
37
|
}> & {
|
|
37
38
|
createdAt: NativeDate;
|
|
38
39
|
updatedAt: NativeDate;
|
|
@@ -49,7 +50,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
49
50
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
50
51
|
nameOfAccountHolder?: string | null | undefined;
|
|
51
52
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
52
|
-
sortCode?:
|
|
53
|
+
sortCode?: SortCode | null | undefined;
|
|
53
54
|
} & {
|
|
54
55
|
_id: mongoose.Types.ObjectId;
|
|
55
56
|
} & {
|
|
@@ -80,7 +81,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
80
81
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
81
82
|
nameOfAccountHolder?: string | null | undefined;
|
|
82
83
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
83
|
-
sortCode?:
|
|
84
|
+
sortCode?: SortCode | null | undefined;
|
|
84
85
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
85
86
|
createdAt: NativeDate;
|
|
86
87
|
updatedAt: NativeDate;
|
|
@@ -97,7 +98,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
97
98
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
98
99
|
nameOfAccountHolder?: string | null | undefined;
|
|
99
100
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
100
|
-
sortCode?:
|
|
101
|
+
sortCode?: SortCode | null | undefined;
|
|
101
102
|
}>> & mongoose.FlatRecord<{
|
|
102
103
|
createdAt: NativeDate;
|
|
103
104
|
updatedAt: NativeDate;
|
|
@@ -114,7 +115,7 @@ declare const ApplicationDirectDebitModel: mongoose.Model<{
|
|
|
114
115
|
isConfirmDeclaration?: boolean | null | undefined;
|
|
115
116
|
nameOfAccountHolder?: string | null | undefined;
|
|
116
117
|
selectedPaymentDayLid?: mongoose.Types.ObjectId | null | undefined;
|
|
117
|
-
sortCode?:
|
|
118
|
+
sortCode?: SortCode | null | undefined;
|
|
118
119
|
}> & {
|
|
119
120
|
_id: mongoose.Types.ObjectId;
|
|
120
121
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAmB,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AA+EtD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyE,CAAC;AAC3G,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import mongoose from 'mongoose';
|
|
2
|
+
import { SortCode } from '../value-objects/sort-code';
|
|
2
3
|
const applicationDirectDebitSchema = new mongoose.Schema({
|
|
3
4
|
applicationId: {
|
|
4
5
|
type: mongoose.Schema.Types.ObjectId,
|
|
@@ -52,7 +53,7 @@ const applicationDirectDebitSchema = new mongoose.Schema({
|
|
|
52
53
|
description: 'Lookup reference for selected payment day',
|
|
53
54
|
},
|
|
54
55
|
sortCode: {
|
|
55
|
-
type:
|
|
56
|
+
type: SortCode,
|
|
56
57
|
description: 'UK bank sort code in XX-XX-XX format',
|
|
57
58
|
},
|
|
58
59
|
}, {
|