-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreference.ts
91 lines (90 loc) · 1.93 KB
/
preference.ts
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { Item } from "./item";
export interface Preference {
id?: string;
binary_mode?: boolean;
items?: Item[];
payer?: {
name?: string;
surname?: string;
email?: string;
phone?: {
area_code?: string;
number?: number;
[k: string]: any;
};
identification?: {
type?: string;
number?: string;
[k: string]: any;
};
address?: {
zip_code?: string;
street_name?: string;
street_number?: number;
[k: string]: any;
};
[k: string]: any;
};
payment_methods?: {
excluded_payment_methods?: {
id?: string;
[k: string]: any;
}[];
excluded_payment_types?: {
id?: string;
[k: string]: any;
}[];
default_payment_method_id?: string;
installments?: number;
default_installments?: number;
[k: string]: any;
};
shipments?: {
mode?: "custom" | "me2" | "not_specified";
local_pickup?: boolean;
dimensions?: string;
default_shipping_method?: number;
free_methods?: {
id?: number;
[k: string]: any;
}[];
cost?: number;
free_shipping?: boolean;
receiver_address?: {
zip_code?: string;
street_name?: string;
street_number?: number;
floor?: string;
apartment?: string;
[k: string]: any;
};
[k: string]: any;
};
back_urls?: {
success?: string;
pending?: string;
failure?: string;
[k: string]: any;
};
notification_url?: string;
mode?: "regular_payment" | "money_transfer";
additional_info?: string;
auto_return?: "approved" | "all";
external_reference?: string;
expires?: boolean;
expiration_date_from?: string;
expiration_date_to?: string;
collector_id?: number;
client_id?: number;
marketplace?: string;
marketplace_fee?: number;
differential_pricing?: {
id?: number;
[k: string]: any;
};
taxes?: {
type?: "IVA" | "INC";
value?: number;
[k: string]: any;
}[];
}