@star-insure/sdk 0.1.3 → 0.1.6
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/types/models/index.d.ts +1 -0
- package/dist/types/models/quotes/Lead.d.ts +17 -0
- package/dist/types/models/quotes/QuoteRequest.d.ts +109 -16
- package/dist/types/models/quotes/QuoteRequestDeclaration.d.ts +22 -0
- package/dist/types/models/quotes/QuoteRequestForm.d.ts +5 -0
- package/dist/types/models/quotes/QuoteRequestPurchaseOption.d.ts +14 -14
- package/dist/types/models/quotes/QuoteRequestReferrer.d.ts +7 -0
- package/dist/types/models/quotes/QuoteRequestVehicle.d.ts +4 -4
- package/dist/types/models/quotes/QuoteRequestVehicleDriver.d.ts +2 -2
- package/dist/types/models/quotes/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/types/models/index.ts +1 -0
- package/src/types/models/quotes/Lead.ts +2 -0
- package/src/types/models/quotes/QuoteRequest.ts +116 -16
- package/src/types/models/quotes/QuoteRequestDeclaration.ts +13 -9
- package/src/types/models/quotes/QuoteRequestForm.ts +5 -0
- package/src/types/models/quotes/QuoteRequestPurchaseOption.ts +14 -14
- package/src/types/models/quotes/QuoteRequestReferrer.ts +2 -0
- package/src/types/models/quotes/QuoteRequestVehicle.ts +4 -4
- package/src/types/models/quotes/QuoteRequestVehicleDriver.ts +2 -2
- package/src/types/models/quotes/index.ts +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PostalAddress } from "./PostalAddress";
|
|
2
|
+
export interface Lead {
|
|
3
|
+
id: number;
|
|
4
|
+
first_name: string;
|
|
5
|
+
last_name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
mobile: string;
|
|
8
|
+
status: string;
|
|
9
|
+
source: string;
|
|
10
|
+
postal_address_id: PostalAddress['id'];
|
|
11
|
+
current_insurer: string | null;
|
|
12
|
+
current_insurance_expires_at: string | null;
|
|
13
|
+
current_insurance_is_monthly: boolean;
|
|
14
|
+
vehicle_details: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
import_data: string | null;
|
|
17
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Product, VehicleType } from "../../api";
|
|
1
2
|
import { Club } from "./Club";
|
|
3
|
+
import { QuoteRequestIncident } from "./QuoteRequestForm";
|
|
2
4
|
import { Lead } from "./Lead";
|
|
3
5
|
import { PostalAddress } from "./PostalAddress";
|
|
4
6
|
import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
|
|
5
7
|
import { QuoteRequestLog } from "./QuoteRequestLog";
|
|
6
|
-
import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
8
|
+
import { PaymentFrequency, PremiumType, QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
7
9
|
import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
|
|
8
10
|
import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
|
|
9
11
|
import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
|
|
@@ -22,32 +24,32 @@ export interface QuoteRequestUserGroup {
|
|
|
22
24
|
}
|
|
23
25
|
export interface QuoteRequest {
|
|
24
26
|
id: string;
|
|
27
|
+
status: QuoteRequestStatus;
|
|
28
|
+
source: QuoteRequestSource;
|
|
25
29
|
reference: string;
|
|
26
30
|
client_number: string;
|
|
27
|
-
first_name: string;
|
|
28
|
-
last_name: string;
|
|
29
|
-
phone: string;
|
|
30
|
-
mobile: string;
|
|
31
|
-
email: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
has_automatch: boolean;
|
|
31
|
+
first_name: string | null;
|
|
32
|
+
last_name: string | null;
|
|
33
|
+
phone: string | null;
|
|
34
|
+
mobile: string | null;
|
|
35
|
+
email: string | null;
|
|
36
|
+
licence: string | null;
|
|
37
|
+
licence_other: string | null;
|
|
38
|
+
has_automatch: boolean | null;
|
|
35
39
|
automatch_by: QuoteRequestAutomatch;
|
|
36
40
|
automatch_client_id: string | null;
|
|
37
41
|
promo_code: string | null;
|
|
38
|
-
club_membership_number: string;
|
|
39
|
-
broker_fee: number;
|
|
42
|
+
club_membership_number: string | null;
|
|
43
|
+
broker_fee: number | null;
|
|
40
44
|
length_of_insurance: string | null;
|
|
41
45
|
theme: string | null;
|
|
42
46
|
created_at: string;
|
|
43
47
|
updated_at: string;
|
|
44
|
-
dob: string;
|
|
48
|
+
dob: string | null;
|
|
45
49
|
sold_at: string | null;
|
|
46
50
|
sent_at: string | null;
|
|
47
51
|
pricing_expires_at: string | null;
|
|
48
52
|
follow_up_at: string | null;
|
|
49
|
-
status_id: QuoteRequestStatus;
|
|
50
|
-
source_id: QuoteRequestSource;
|
|
51
53
|
resubmit_id: QuoteRequest['id'] | null;
|
|
52
54
|
referrer_id: QuoteRequestReferrer['id'] | null;
|
|
53
55
|
referrer_category_id: QuoteRequestReferrerCategory['id'] | null;
|
|
@@ -58,8 +60,6 @@ export interface QuoteRequest {
|
|
|
58
60
|
broker_id: QuoteRequestUser['id'] | null;
|
|
59
61
|
club_id: Club['id'] | null;
|
|
60
62
|
lead_id: Lead['id'] | null;
|
|
61
|
-
status?: QuoteRequestStatus;
|
|
62
|
-
source?: QuoteRequestSource;
|
|
63
63
|
declaration?: QuoteRequestDeclaration;
|
|
64
64
|
street_address?: StreetAddress;
|
|
65
65
|
postal_address?: PostalAddress;
|
|
@@ -77,3 +77,96 @@ export interface QuoteRequest {
|
|
|
77
77
|
purchase_options?: QuoteRequestPurchaseOption[];
|
|
78
78
|
logs?: QuoteRequestLog[];
|
|
79
79
|
}
|
|
80
|
+
export interface QuoteRequestForm {
|
|
81
|
+
id?: string;
|
|
82
|
+
status?: QuoteRequestStatus;
|
|
83
|
+
source?: QuoteRequestSource;
|
|
84
|
+
reference?: string;
|
|
85
|
+
client_number?: string;
|
|
86
|
+
first_name?: string;
|
|
87
|
+
last_name?: string;
|
|
88
|
+
phone?: string;
|
|
89
|
+
mobile?: string;
|
|
90
|
+
email?: string;
|
|
91
|
+
licence?: string;
|
|
92
|
+
licence_other?: string;
|
|
93
|
+
promo_code?: string;
|
|
94
|
+
club_membership_number?: string;
|
|
95
|
+
broker_fee?: number;
|
|
96
|
+
length_of_insurance?: string;
|
|
97
|
+
theme?: string;
|
|
98
|
+
dob?: string;
|
|
99
|
+
sold_at?: string;
|
|
100
|
+
sent_at?: string;
|
|
101
|
+
pricing_expires_at?: string;
|
|
102
|
+
follow_up_at?: string;
|
|
103
|
+
referrer_id?: QuoteRequestReferrer['id'];
|
|
104
|
+
referrer_category_id?: QuoteRequestReferrerCategory['id'];
|
|
105
|
+
staff_member_id?: QuoteRequestUser['id'];
|
|
106
|
+
agent_id?: QuoteRequestUser['id'];
|
|
107
|
+
agent_firm_id?: QuoteRequestUserGroup['id'];
|
|
108
|
+
broker_firm_id?: QuoteRequestUserGroup['id'];
|
|
109
|
+
broker_id?: QuoteRequestUser['id'];
|
|
110
|
+
club_id?: Club['id'];
|
|
111
|
+
declaration: {
|
|
112
|
+
id?: number;
|
|
113
|
+
had_incident?: boolean;
|
|
114
|
+
incidents?: QuoteRequestIncident[];
|
|
115
|
+
has_demerit_points?: boolean;
|
|
116
|
+
demerit_points?: string;
|
|
117
|
+
has_lost_licence?: boolean;
|
|
118
|
+
lost_licence_details?: string;
|
|
119
|
+
was_refused_insurance?: boolean;
|
|
120
|
+
refused_insurance_details?: string;
|
|
121
|
+
has_criminal_conviction?: boolean;
|
|
122
|
+
criminal_conviction_details?: string;
|
|
123
|
+
has_vehicle_modifications?: boolean;
|
|
124
|
+
vehicle_modifications_details?: string;
|
|
125
|
+
has_previous_insurer?: boolean;
|
|
126
|
+
previous_insurer_details?: string;
|
|
127
|
+
previous_insurer_expires_at?: string;
|
|
128
|
+
additional_details?: string;
|
|
129
|
+
};
|
|
130
|
+
vehicles: {
|
|
131
|
+
id?: number;
|
|
132
|
+
vehicle_type?: VehicleType;
|
|
133
|
+
registration?: string;
|
|
134
|
+
make?: string;
|
|
135
|
+
model?: string;
|
|
136
|
+
year?: string;
|
|
137
|
+
usage?: string;
|
|
138
|
+
product?: Product;
|
|
139
|
+
has_financially_interested_party?: boolean;
|
|
140
|
+
financially_interested_party_detail?: string;
|
|
141
|
+
owned_duration?: string;
|
|
142
|
+
value?: number;
|
|
143
|
+
storage_location?: string;
|
|
144
|
+
is_heavy?: boolean;
|
|
145
|
+
drivers: {
|
|
146
|
+
id?: number;
|
|
147
|
+
first_name?: string;
|
|
148
|
+
last_name?: string;
|
|
149
|
+
dob?: string;
|
|
150
|
+
relationship?: string;
|
|
151
|
+
licence?: string;
|
|
152
|
+
licence_other?: string;
|
|
153
|
+
}[];
|
|
154
|
+
}[];
|
|
155
|
+
purchaseOptions?: {
|
|
156
|
+
id?: number;
|
|
157
|
+
level_of_insurance_id?: number;
|
|
158
|
+
sort_order?: number;
|
|
159
|
+
description?: string;
|
|
160
|
+
base_premium?: number;
|
|
161
|
+
premium?: number;
|
|
162
|
+
monthly_premium?: number;
|
|
163
|
+
show_monthly?: boolean;
|
|
164
|
+
fsl?: number;
|
|
165
|
+
gst?: number;
|
|
166
|
+
premium_type?: PremiumType;
|
|
167
|
+
policy_starts_at?: string;
|
|
168
|
+
sold_at?: string;
|
|
169
|
+
is_paid?: boolean;
|
|
170
|
+
payment_frequency?: PaymentFrequency;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { QuoteRequest } from "./QuoteRequest";
|
|
2
|
+
import { QuoteRequestIncident } from "./QuoteRequestForm";
|
|
3
|
+
export interface QuoteRequestDeclaration {
|
|
4
|
+
id: number;
|
|
5
|
+
quote_request_id: QuoteRequest['id'] | null;
|
|
6
|
+
had_incident: boolean | null;
|
|
7
|
+
incidents: QuoteRequestIncident[] | null;
|
|
8
|
+
has_demerit_points: boolean | null;
|
|
9
|
+
demerit_points: string | null;
|
|
10
|
+
has_lost_licence: boolean | null;
|
|
11
|
+
lost_licence_details: string | null;
|
|
12
|
+
was_refused_insurance: boolean | null;
|
|
13
|
+
refused_insurance_details: string | null;
|
|
14
|
+
has_criminal_conviction: boolean | null;
|
|
15
|
+
criminal_conviction_details: string | null;
|
|
16
|
+
has_vehicle_modifications: boolean | null;
|
|
17
|
+
vehicle_modifications_details: string | null;
|
|
18
|
+
has_previous_insurer: boolean | null;
|
|
19
|
+
previous_insurer_details: string | null;
|
|
20
|
+
previous_insurer_expires_at: string | null;
|
|
21
|
+
additional_details: string | null;
|
|
22
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface QuoteRequestPurchaseOption {
|
|
2
2
|
id: number;
|
|
3
3
|
quote_request_id: string;
|
|
4
|
-
level_of_insurance_id: number;
|
|
5
|
-
sort_order: number;
|
|
6
|
-
description: string;
|
|
7
|
-
base_premium: number;
|
|
8
|
-
premium: number;
|
|
9
|
-
monthly_premium: number;
|
|
10
|
-
show_monthly: boolean;
|
|
11
|
-
fsl: number;
|
|
12
|
-
gst: number;
|
|
13
|
-
premium_type: PremiumType;
|
|
14
|
-
policy_starts_at: string | null;
|
|
15
|
-
sold_at: string | null;
|
|
16
|
-
is_paid: boolean;
|
|
17
|
-
payment_frequency: PaymentFrequency;
|
|
4
|
+
level_of_insurance_id: number | null;
|
|
5
|
+
sort_order: number | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
base_premium: number | null;
|
|
8
|
+
premium: number | null;
|
|
9
|
+
monthly_premium: number | null;
|
|
10
|
+
show_monthly: boolean | null;
|
|
11
|
+
fsl: number | null;
|
|
12
|
+
gst: number | null;
|
|
13
|
+
premium_type: PremiumType | null;
|
|
14
|
+
policy_starts_at: string | null | null;
|
|
15
|
+
sold_at: string | null | null;
|
|
16
|
+
is_paid: boolean | null;
|
|
17
|
+
payment_frequency: PaymentFrequency | null;
|
|
18
18
|
}
|
|
19
19
|
export declare type PremiumType = 'annual' | 'total-due';
|
|
20
20
|
export declare type PaymentFrequency = 'monthly' | 'annually';
|
|
@@ -2,19 +2,19 @@ import { Product, VehicleType } from "../../api";
|
|
|
2
2
|
import { QuoteRequestVehicleDriver } from "./QuoteRequestVehicleDriver";
|
|
3
3
|
export interface QuoteRequestVehicle {
|
|
4
4
|
id: number;
|
|
5
|
-
vehicle_type: VehicleType;
|
|
5
|
+
vehicle_type: VehicleType | null;
|
|
6
6
|
registration: string | null;
|
|
7
7
|
make: string | null;
|
|
8
8
|
model: string | null;
|
|
9
9
|
year: string | null;
|
|
10
10
|
usage: string | null;
|
|
11
|
-
product: Product;
|
|
12
|
-
has_financially_interested_party: boolean;
|
|
11
|
+
product: Product | null;
|
|
12
|
+
has_financially_interested_party: boolean | null;
|
|
13
13
|
financially_interested_party_detail: string | null;
|
|
14
14
|
owned_duration: string | null;
|
|
15
15
|
value: number | null;
|
|
16
16
|
storage_location: string | null;
|
|
17
|
-
is_heavy: boolean;
|
|
17
|
+
is_heavy: boolean | null;
|
|
18
18
|
quote_request_id: string;
|
|
19
19
|
drivers?: QuoteRequestVehicleDriver[];
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@star-insure/sdk",
|
|
3
3
|
"description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
|
|
4
4
|
"author": "alexclark_nz",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.6",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { Product, VehicleType } from "../../api";
|
|
1
2
|
import { Club } from "./Club";
|
|
3
|
+
import { QuoteRequestIncident } from "./QuoteRequestForm";
|
|
2
4
|
import { Lead } from "./Lead";
|
|
3
5
|
import { PostalAddress } from "./PostalAddress";
|
|
4
6
|
import { QuoteRequestDeclaration } from "./QuoteRequestDeclaration";
|
|
5
7
|
import { QuoteRequestLog } from "./QuoteRequestLog";
|
|
6
|
-
import { QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
8
|
+
import { PaymentFrequency, PremiumType, QuoteRequestPurchaseOption } from "./QuoteRequestPurchaseOption";
|
|
7
9
|
import { QuoteRequestReferrer } from "./QuoteRequestReferrer";
|
|
8
10
|
import { QuoteRequestReferrerCategory } from "./QuoteRequestReferrerCategory";
|
|
9
11
|
import { QuoteRequestVehicle } from "./QuoteRequestVehicle";
|
|
@@ -28,36 +30,36 @@ export interface QuoteRequestUserGroup {
|
|
|
28
30
|
|
|
29
31
|
export interface QuoteRequest {
|
|
30
32
|
id: string;
|
|
33
|
+
status: QuoteRequestStatus;
|
|
34
|
+
source: QuoteRequestSource;
|
|
31
35
|
reference: string;
|
|
32
36
|
client_number: string;
|
|
33
|
-
first_name: string;
|
|
34
|
-
last_name: string;
|
|
35
|
-
phone: string;
|
|
36
|
-
mobile: string;
|
|
37
|
-
email: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
has_automatch: boolean;
|
|
37
|
+
first_name: string | null;
|
|
38
|
+
last_name: string | null;
|
|
39
|
+
phone: string | null;
|
|
40
|
+
mobile: string | null;
|
|
41
|
+
email: string | null;
|
|
42
|
+
licence: string | null;
|
|
43
|
+
licence_other: string | null;
|
|
44
|
+
has_automatch: boolean | null;
|
|
41
45
|
automatch_by: QuoteRequestAutomatch;
|
|
42
46
|
automatch_client_id: string | null;
|
|
43
47
|
promo_code: string | null;
|
|
44
|
-
club_membership_number: string;
|
|
45
|
-
broker_fee: number;
|
|
48
|
+
club_membership_number: string | null;
|
|
49
|
+
broker_fee: number | null;
|
|
46
50
|
length_of_insurance: string | null;
|
|
47
51
|
theme: string | null;
|
|
48
52
|
|
|
49
53
|
// Dates
|
|
50
54
|
created_at: string;
|
|
51
55
|
updated_at: string;
|
|
52
|
-
dob: string;
|
|
56
|
+
dob: string | null;
|
|
53
57
|
sold_at: string | null;
|
|
54
58
|
sent_at: string | null;
|
|
55
59
|
pricing_expires_at: string | null;
|
|
56
60
|
follow_up_at: string | null;
|
|
57
61
|
|
|
58
62
|
// Foreign keys
|
|
59
|
-
status_id: QuoteRequestStatus;
|
|
60
|
-
source_id: QuoteRequestSource;
|
|
61
63
|
resubmit_id: QuoteRequest['id'] | null;
|
|
62
64
|
referrer_id: QuoteRequestReferrer['id'] | null;
|
|
63
65
|
referrer_category_id: QuoteRequestReferrerCategory['id'] | null;
|
|
@@ -70,8 +72,6 @@ export interface QuoteRequest {
|
|
|
70
72
|
lead_id: Lead['id'] | null;
|
|
71
73
|
|
|
72
74
|
// Relationships
|
|
73
|
-
status?: QuoteRequestStatus;
|
|
74
|
-
source?: QuoteRequestSource;
|
|
75
75
|
declaration?: QuoteRequestDeclaration;
|
|
76
76
|
street_address?: StreetAddress;
|
|
77
77
|
postal_address?: PostalAddress;
|
|
@@ -89,3 +89,103 @@ export interface QuoteRequest {
|
|
|
89
89
|
purchase_options?: QuoteRequestPurchaseOption[];
|
|
90
90
|
logs?: QuoteRequestLog[];
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
export interface QuoteRequestForm {
|
|
94
|
+
id?: string;
|
|
95
|
+
status?: QuoteRequestStatus;
|
|
96
|
+
source?: QuoteRequestSource;
|
|
97
|
+
reference?: string;
|
|
98
|
+
client_number?: string;
|
|
99
|
+
first_name?: string;
|
|
100
|
+
last_name?: string;
|
|
101
|
+
phone?: string;
|
|
102
|
+
mobile?: string;
|
|
103
|
+
email?: string;
|
|
104
|
+
licence?: string;
|
|
105
|
+
licence_other?: string;
|
|
106
|
+
promo_code?: string;
|
|
107
|
+
club_membership_number?: string;
|
|
108
|
+
broker_fee?: number;
|
|
109
|
+
length_of_insurance?: string;
|
|
110
|
+
theme?: string;
|
|
111
|
+
|
|
112
|
+
dob?: string;
|
|
113
|
+
sold_at?: string;
|
|
114
|
+
sent_at?: string;
|
|
115
|
+
pricing_expires_at?: string;
|
|
116
|
+
follow_up_at?: string;
|
|
117
|
+
|
|
118
|
+
// Foreign keys
|
|
119
|
+
referrer_id?: QuoteRequestReferrer['id'];
|
|
120
|
+
referrer_category_id?: QuoteRequestReferrerCategory['id'];
|
|
121
|
+
staff_member_id?: QuoteRequestUser['id'];
|
|
122
|
+
agent_id?: QuoteRequestUser['id'];
|
|
123
|
+
agent_firm_id?: QuoteRequestUserGroup['id'];
|
|
124
|
+
broker_firm_id?: QuoteRequestUserGroup['id'];
|
|
125
|
+
broker_id?: QuoteRequestUser['id'];
|
|
126
|
+
club_id?: Club['id'];
|
|
127
|
+
|
|
128
|
+
declaration: {
|
|
129
|
+
id?: number;
|
|
130
|
+
had_incident?: boolean;
|
|
131
|
+
incidents?: QuoteRequestIncident[];
|
|
132
|
+
has_demerit_points?: boolean;
|
|
133
|
+
demerit_points?: string;
|
|
134
|
+
has_lost_licence?: boolean;
|
|
135
|
+
lost_licence_details?: string;
|
|
136
|
+
was_refused_insurance?: boolean;
|
|
137
|
+
refused_insurance_details?: string;
|
|
138
|
+
has_criminal_conviction?: boolean;
|
|
139
|
+
criminal_conviction_details?: string;
|
|
140
|
+
has_vehicle_modifications?: boolean;
|
|
141
|
+
vehicle_modifications_details?: string;
|
|
142
|
+
has_previous_insurer?: boolean;
|
|
143
|
+
previous_insurer_details?: string;
|
|
144
|
+
previous_insurer_expires_at?: string;
|
|
145
|
+
additional_details?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
vehicles: {
|
|
149
|
+
id?: number;
|
|
150
|
+
vehicle_type?: VehicleType;
|
|
151
|
+
registration?: string;
|
|
152
|
+
make?: string;
|
|
153
|
+
model?: string;
|
|
154
|
+
year?: string;
|
|
155
|
+
usage?: string;
|
|
156
|
+
product?: Product;
|
|
157
|
+
has_financially_interested_party?: boolean;
|
|
158
|
+
financially_interested_party_detail?: string;
|
|
159
|
+
owned_duration?: string;
|
|
160
|
+
value?: number;
|
|
161
|
+
storage_location?: string;
|
|
162
|
+
is_heavy?: boolean;
|
|
163
|
+
drivers: {
|
|
164
|
+
id?: number;
|
|
165
|
+
first_name?: string;
|
|
166
|
+
last_name?: string;
|
|
167
|
+
dob?: string;
|
|
168
|
+
relationship?: string;
|
|
169
|
+
licence?: string;
|
|
170
|
+
licence_other?: string;
|
|
171
|
+
}[];
|
|
172
|
+
}[],
|
|
173
|
+
|
|
174
|
+
purchaseOptions?: {
|
|
175
|
+
id?: number;
|
|
176
|
+
level_of_insurance_id?: number;
|
|
177
|
+
sort_order?: number;
|
|
178
|
+
description?: string;
|
|
179
|
+
base_premium?: number;
|
|
180
|
+
premium?: number;
|
|
181
|
+
monthly_premium?: number;
|
|
182
|
+
show_monthly?: boolean;
|
|
183
|
+
fsl?: number;
|
|
184
|
+
gst?: number;
|
|
185
|
+
premium_type?: PremiumType;
|
|
186
|
+
policy_starts_at?: string;
|
|
187
|
+
sold_at?: string;
|
|
188
|
+
is_paid?: boolean;
|
|
189
|
+
payment_frequency?: PaymentFrequency;
|
|
190
|
+
},
|
|
191
|
+
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
import { QuoteRequest } from "./QuoteRequest";
|
|
2
|
+
import { QuoteRequestIncident } from "./QuoteRequestForm";
|
|
3
|
+
|
|
1
4
|
export interface QuoteRequestDeclaration {
|
|
2
5
|
id: number;
|
|
3
|
-
quote_request_id: QuoteRequest['id'];
|
|
4
|
-
had_incident: boolean;
|
|
5
|
-
|
|
6
|
+
quote_request_id: QuoteRequest['id'] | null;
|
|
7
|
+
had_incident: boolean | null;
|
|
8
|
+
incidents: QuoteRequestIncident[] | null;
|
|
9
|
+
has_demerit_points: boolean | null;
|
|
6
10
|
demerit_points: string | null;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
was_refused_insurance: boolean;
|
|
11
|
+
has_lost_licence: boolean | null;
|
|
12
|
+
lost_licence_details: string | null;
|
|
13
|
+
was_refused_insurance: boolean | null;
|
|
10
14
|
refused_insurance_details: string | null;
|
|
11
|
-
has_criminal_conviction: boolean;
|
|
15
|
+
has_criminal_conviction: boolean | null;
|
|
12
16
|
criminal_conviction_details: string | null;
|
|
13
|
-
has_vehicle_modifications: boolean;
|
|
17
|
+
has_vehicle_modifications: boolean | null;
|
|
14
18
|
vehicle_modifications_details: string | null;
|
|
15
|
-
has_previous_insurer: boolean;
|
|
19
|
+
has_previous_insurer: boolean | null;
|
|
16
20
|
previous_insurer_details: string | null;
|
|
17
21
|
previous_insurer_expires_at: string | null;
|
|
18
22
|
additional_details: string | null;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface QuoteRequestPurchaseOption {
|
|
2
2
|
id: number;
|
|
3
3
|
quote_request_id: string;
|
|
4
|
-
level_of_insurance_id: number;
|
|
5
|
-
sort_order: number;
|
|
6
|
-
description: string;
|
|
7
|
-
base_premium: number;
|
|
8
|
-
premium: number;
|
|
9
|
-
monthly_premium: number;
|
|
10
|
-
show_monthly: boolean;
|
|
11
|
-
fsl: number;
|
|
12
|
-
gst: number;
|
|
13
|
-
premium_type: PremiumType;
|
|
14
|
-
policy_starts_at: string | null;
|
|
15
|
-
sold_at: string | null;
|
|
16
|
-
is_paid: boolean;
|
|
17
|
-
payment_frequency: PaymentFrequency;
|
|
4
|
+
level_of_insurance_id: number | null;
|
|
5
|
+
sort_order: number | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
base_premium: number | null;
|
|
8
|
+
premium: number | null;
|
|
9
|
+
monthly_premium: number | null;
|
|
10
|
+
show_monthly: boolean | null;
|
|
11
|
+
fsl: number | null;
|
|
12
|
+
gst: number | null;
|
|
13
|
+
premium_type: PremiumType | null;
|
|
14
|
+
policy_starts_at: string | null | null;
|
|
15
|
+
sold_at: string | null | null;
|
|
16
|
+
is_paid: boolean | null;
|
|
17
|
+
payment_frequency: PaymentFrequency | null;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type PremiumType = 'annual' | 'total-due';
|
|
@@ -3,19 +3,19 @@ import { QuoteRequestVehicleDriver } from "./QuoteRequestVehicleDriver";
|
|
|
3
3
|
|
|
4
4
|
export interface QuoteRequestVehicle {
|
|
5
5
|
id: number;
|
|
6
|
-
vehicle_type: VehicleType;
|
|
6
|
+
vehicle_type: VehicleType | null;
|
|
7
7
|
registration: string | null;
|
|
8
8
|
make: string | null;
|
|
9
9
|
model: string | null;
|
|
10
10
|
year: string | null;
|
|
11
11
|
usage: string | null;
|
|
12
|
-
product: Product;
|
|
13
|
-
has_financially_interested_party: boolean;
|
|
12
|
+
product: Product | null;
|
|
13
|
+
has_financially_interested_party: boolean | null;
|
|
14
14
|
financially_interested_party_detail: string | null;
|
|
15
15
|
owned_duration: string | null;
|
|
16
16
|
value: number | null;
|
|
17
17
|
storage_location: string | null;
|
|
18
|
-
is_heavy: boolean;
|
|
18
|
+
is_heavy: boolean | null;
|
|
19
19
|
quote_request_id: string;
|
|
20
20
|
drivers?: QuoteRequestVehicleDriver[];
|
|
21
21
|
}
|