-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.ts
More file actions
65 lines (59 loc) · 1.21 KB
/
types.ts
File metadata and controls
65 lines (59 loc) · 1.21 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
type StringOrNumber = number|string
// Full Order
export interface Billing {
firstname: string;
lastname: string;
address_1: string;
address_2: string;
city: string;
state_or_region: string;
postcode_or_pobox: string;
country: string;
phone: string;
}
export interface Shipping {
firstname: string;
lastname: string;
address_1: string;
address_2: string;
city: string;
state_or_region: string;
postcode_or_pobox: string;
country: string;
phone: string;
}
export interface Order {
vendor: string;
order_id: string;
buyer_email: string;
buyer_name: string;
buyer_user_id: string;
buyer_phone: string;
gateway_buyer_uuid: string;
amount: StringOrNumber;
currency: string;
payment_methods: string;
redirect_url: string;
cancel_url: string;
webhook: string;
billing: Billing;
shipping: Shipping;
buyer_remarks: string;
merchant_remarks: string;
no_of_items: StringOrNumber;
}
//
export interface OrderMinimal {
vendor: string;
order_id: string;
buyer_email: string;
buyer_name: string;
buyer_phone: string;
amount: StringOrNumber;
currency: string;
webhook: string;
buyer_remarks: string;
merchant_remarks: string;
no_of_items: StringOrNumber;
}
//