-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.ts
93 lines (92 loc) · 2.21 KB
/
payment.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
92
93
import { Item } from "./item";
export interface Payment {
id?: string;
status?: 'pending' | 'approved' | 'authorized' | 'in_process' | 'in_mediation' | 'rejected' | 'cancelled' | 'refunded' | 'charged_back';
payer?: {
entity_type?: "individual" | "association";
type?: "customer" | "registered" | "guest";
id?: string;
email?: string;
identification?: {
type?: string;
number?: string;
[k: string]: any;
};
phone?: {
area_code?: string;
number?: string;
extension?: string;
[k: string]: any;
};
first_name?: string;
last_name?: string;
[k: string]: any;
};
binary_mode?: boolean;
order?: {
type?: "mercadolibre" | "mercadopago";
id?: number;
[k: string]: any;
};
external_reference?: string;
description?: string;
metadata?: {
[k: string]: any;
};
transaction_amount?: number;
coupon_amount?: number;
campaign_id?: number;
coupon_code?: string;
differential_pricing_id?: number;
application_fee?: number;
capture?: boolean;
payment_method_id?: string;
issuer_id?: string;
token?: string;
statement_descriptor?: string;
installments?: number;
notification_url?: string;
callback_url?: string;
additional_info?: {
ip_address?: string;
items?: Item[];
payer?: {
first_name?: string;
last_name?: string;
phone?: {
area_code?: string;
number?: string;
[k: string]: any;
};
address?: {
zip_code?: string;
street_name?: string;
street_number?: number;
[k: string]: any;
};
registration_date?: string;
[k: string]: any;
};
shipments?: {
receiver_address?: string;
zip_code?: string;
street_name?: string;
street_number?: number;
floor?: number;
apartment?: string;
[k: string]: any;
};
[k: string]: any;
};
transaction_details?: {
net_received_amount?: number,
total_paid_amount?: number,
overpaid_amount?: number,
external_resource_url?: string,
installment_amount?: number,
financial_institution?: unknown,
payment_method_reference_id?: unknown,
payable_deferral_period?: unknown,
acquirer_reference?: unknown
}
}