@alba-cars/common-modules 2.5.5 → 2.6.1
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.
|
@@ -42,6 +42,7 @@ type TicketEndpoints = BaseEndpoint & {
|
|
|
42
42
|
addDocument: EndpointFunction;
|
|
43
43
|
getDocuments: EndpointFunction;
|
|
44
44
|
reopenTicket: EndpointFunction;
|
|
45
|
+
sendToKissFlow: string;
|
|
45
46
|
};
|
|
46
47
|
type ReviewEndpoints = BaseEndpoint & {
|
|
47
48
|
changeReviewShowPublic: EndpointFunction;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { MarketingData } from "../../core";
|
|
1
2
|
import { BaseModel } from "./Base";
|
|
2
|
-
import {
|
|
3
|
+
import { Lead } from "./Lead";
|
|
3
4
|
export declare enum PaymentStatus {
|
|
4
5
|
DRAFT = "draft",
|
|
5
6
|
PENDING = "pending",
|
|
@@ -9,20 +10,36 @@ export declare enum PaymentStatus {
|
|
|
9
10
|
CANCELLED = "cancelled",
|
|
10
11
|
AUTHORIZED = "authorized"
|
|
11
12
|
}
|
|
13
|
+
export declare enum ProductType {
|
|
14
|
+
VEHICLE_DEPOSIT = "vehicle_deposit",
|
|
15
|
+
VALUATION_CERTIFICATE = "valuation_certificate"
|
|
16
|
+
}
|
|
12
17
|
export declare class Payment extends BaseModel {
|
|
13
|
-
userId
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
userId?: string;
|
|
19
|
+
leadId?: string;
|
|
20
|
+
lead?: Lead;
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
status: PaymentStatus;
|
|
24
|
+
productType: ProductType;
|
|
25
|
+
stripePaymentIntentId: string | null;
|
|
26
|
+
stripeCheckoutSessionId: string | null;
|
|
27
|
+
stripeClientSecret: string | null;
|
|
28
|
+
stripeRefundId: string | null;
|
|
29
|
+
failureReason: string | null;
|
|
30
|
+
failureCode: string | null;
|
|
31
|
+
failureMessage: string | null;
|
|
32
|
+
declineCode: string | null;
|
|
33
|
+
networkStatus: string | null;
|
|
34
|
+
errorType: string | null;
|
|
35
|
+
rawErrorResponse: Record<string, never> | null;
|
|
36
|
+
paymentDate: Date | null;
|
|
37
|
+
lastAttemptDate: Date | null;
|
|
38
|
+
retryCount: number | null;
|
|
39
|
+
usedPromoCodeId: string | null;
|
|
40
|
+
discountedAmount?: number | null;
|
|
41
|
+
marketing?: MarketingData | null;
|
|
42
|
+
clientPoBox?: string | null;
|
|
43
|
+
clientTrn?: string | null;
|
|
44
|
+
clientEmirate?: string | null;
|
|
28
45
|
}
|
|
@@ -3,7 +3,9 @@ export declare enum TicketRequestType {
|
|
|
3
3
|
REFUND = "Refund",
|
|
4
4
|
TEST_DRIVE = "Test Drive",
|
|
5
5
|
CAR_VIEWING = "Car Viewing",
|
|
6
|
-
COMPLAINT = "Complaint"
|
|
6
|
+
COMPLAINT = "Complaint",
|
|
7
|
+
SUPPORT = "Support",
|
|
8
|
+
OTHER = "Other"
|
|
7
9
|
}
|
|
8
10
|
export declare enum TicketStatusType {
|
|
9
11
|
OPEN = "Open",
|