types.ts
809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export interface DealDetails {
title: string
code: string
description: string
offeredUItems: string[]
cartCondition: string | null
dealDuration: string
notification: {
email: boolean
sms: boolean
pushNotification: boolean
}
}
export interface DealType {
Offer: string
discount: number | null
region: string | null
}
export interface DealUsage {
userType: string | null
maxUsers: number | null
cartAmount: number | null
promotionFree: number | null
paymentMethod: string | null
dealStatus: string | null
isSingleUserCustomer: boolean
}
export interface DealReviewComplete {
isDealDetailsConfirmed: boolean
}
export interface CreateDealData {
dealDetails: DealDetails
dealType: DealType
dealUsage: DealUsage
dealReviewComplete: DealReviewComplete
}