elections-types 1.0.7 → 1.0.9
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.
|
@@ -2,9 +2,10 @@ import { StateID } from "./State.js";
|
|
|
2
2
|
export declare class Donation {
|
|
3
3
|
readonly committee_id: string;
|
|
4
4
|
readonly donation_id: string;
|
|
5
|
+
readonly receipt_date: string;
|
|
6
|
+
readonly sub_id: string;
|
|
5
7
|
readonly file_number: number;
|
|
6
8
|
readonly image_number: string;
|
|
7
|
-
readonly receipt_date: string;
|
|
8
9
|
readonly amount: number;
|
|
9
10
|
readonly donor_id?: string;
|
|
10
11
|
readonly donor_name: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export class Donation {
|
|
2
2
|
committee_id;
|
|
3
3
|
donation_id;
|
|
4
|
+
receipt_date;
|
|
5
|
+
sub_id;
|
|
4
6
|
file_number;
|
|
5
7
|
image_number;
|
|
6
|
-
receipt_date;
|
|
7
8
|
amount;
|
|
8
9
|
donor_id;
|
|
9
10
|
donor_name;
|
|
@@ -27,9 +28,10 @@ export class Donation {
|
|
|
27
28
|
}
|
|
28
29
|
this.committee_id = donation.committee_id;
|
|
29
30
|
this.donation_id = donation.donation_id;
|
|
31
|
+
this.receipt_date = donation.receipt_date;
|
|
32
|
+
this.sub_id = donation.sub_id;
|
|
30
33
|
this.file_number = donation.file_number;
|
|
31
34
|
this.image_number = donation.image_number;
|
|
32
|
-
this.receipt_date = donation.receipt_date;
|
|
33
35
|
this.amount = donation.amount;
|
|
34
36
|
this.donor_id = donation.donor_id;
|
|
35
37
|
this.donor_name = donation.donor_name;
|
|
@@ -52,9 +54,10 @@ export class Donation {
|
|
|
52
54
|
return (donation !== undefined &&
|
|
53
55
|
typeof donation.committee_id === "string" &&
|
|
54
56
|
typeof donation.donation_id === "string" &&
|
|
57
|
+
typeof donation.receipt_date === "string" &&
|
|
58
|
+
typeof donation.sub_id === "string" &&
|
|
55
59
|
typeof donation.file_number === "number" && !isNaN(donation.file_number) &&
|
|
56
60
|
typeof donation.image_number === "string" &&
|
|
57
|
-
typeof donation.receipt_date === "string" &&
|
|
58
61
|
typeof donation.amount === "number" && !isNaN(donation.amount) &&
|
|
59
62
|
(donation.donor_id === undefined || typeof donation.donor_id === "string") &&
|
|
60
63
|
typeof donation.donor_name === "string" &&
|
package/package.json
CHANGED
package/src/types/Donation.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { StateID } from "./State"
|
|
|
3
3
|
export class Donation {
|
|
4
4
|
readonly committee_id : string
|
|
5
5
|
readonly donation_id : string
|
|
6
|
+
readonly receipt_date : string
|
|
7
|
+
readonly sub_id : string
|
|
6
8
|
readonly file_number : number
|
|
7
9
|
readonly image_number : string
|
|
8
|
-
readonly receipt_date : string
|
|
9
10
|
readonly amount : number
|
|
10
11
|
readonly donor_id? : string
|
|
11
12
|
readonly donor_name : string
|
|
@@ -30,9 +31,10 @@ export class Donation {
|
|
|
30
31
|
}
|
|
31
32
|
this.committee_id = donation.committee_id
|
|
32
33
|
this.donation_id = donation.donation_id
|
|
34
|
+
this.receipt_date = donation.receipt_date
|
|
35
|
+
this.sub_id = donation.sub_id
|
|
33
36
|
this.file_number = donation.file_number
|
|
34
37
|
this.image_number = donation.image_number
|
|
35
|
-
this.receipt_date = donation.receipt_date
|
|
36
38
|
this.amount = donation.amount
|
|
37
39
|
this.donor_id = donation.donor_id
|
|
38
40
|
this.donor_name = donation.donor_name
|
|
@@ -57,9 +59,10 @@ export class Donation {
|
|
|
57
59
|
donation !== undefined &&
|
|
58
60
|
typeof donation.committee_id === "string" &&
|
|
59
61
|
typeof donation.donation_id === "string" &&
|
|
62
|
+
typeof donation.receipt_date === "string" &&
|
|
63
|
+
typeof donation.sub_id === "string" &&
|
|
60
64
|
typeof donation.file_number === "number" && !isNaN(donation.file_number) &&
|
|
61
65
|
typeof donation.image_number === "string" &&
|
|
62
|
-
typeof donation.receipt_date === "string" &&
|
|
63
66
|
typeof donation.amount === "number" && !isNaN(donation.amount) &&
|
|
64
67
|
(donation.donor_id === undefined || typeof donation.donor_id === "string") &&
|
|
65
68
|
typeof donation.donor_name === "string" &&
|