forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
91 lines (90 loc) · 2.73 KB
/
__init__.py
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
TRANSFER_CREATED_TEST_DATA = {
"created": 1348360173,
"data": {
"object": {
"amount": 455,
"currency": "usd",
"date": 1348876800,
"description": None,
"id": "tr_XXXXXXXXXXXX",
"object": "transfer",
"other_transfers": [],
"status": "paid",
"summary": {
"adjustment_count": 0,
"adjustment_fee_details": [],
"adjustment_fees": 0,
"adjustment_gross": 0,
"charge_count": 1,
"charge_fee_details": [{
"amount": 45,
"application": None,
"currency": "usd",
"description": None,
"type": "stripe_fee"
}],
"charge_fees": 45,
"charge_gross": 500,
"collected_fee_count": 0,
"collected_fee_gross": 0,
"currency": "usd",
"net": 455,
"refund_count": 0,
"refund_fees": 0,
"refund_gross": 0,
"validation_count": 0,
"validation_fees": 0
}
}
},
"id": "evt_XXXXXXXXXXXX",
"livemode": True,
"object": "event",
"pending_webhooks": 1,
"type": "transfer.created"
}
TRANSFER_CREATED_TEST_DATA2 = {
"created": 1348360173,
"data": {
"object": {
"amount": 1455,
"currency": "usd",
"date": 1348876800,
"description": None,
"id": "tr_XXXXXXXXXXX2",
"object": "transfer",
"other_transfers": [],
"status": "paid",
"summary": {
"adjustment_count": 0,
"adjustment_fee_details": [],
"adjustment_fees": 0,
"adjustment_gross": 0,
"charge_count": 1,
"charge_fee_details": [{
"amount": 45,
"application": None,
"currency": "usd",
"description": None,
"type": "stripe_fee"
}],
"charge_fees": 45,
"charge_gross": 1500,
"collected_fee_count": 0,
"collected_fee_gross": 0,
"currency": "usd",
"net": 1455,
"refund_count": 0,
"refund_fees": 0,
"refund_gross": 0,
"validation_count": 0,
"validation_fees": 0
}
}
},
"id": "evt_XXXXXXXXXXXY",
"livemode": True,
"object": "event",
"pending_webhooks": 1,
"type": "transfer.created"
}