forked from stripe-ruby-mock/stripe-ruby-mock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
invoice.payment_succeeded.json
112 lines (112 loc) · 3.07 KB
/
invoice.payment_succeeded.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "invoice.payment_succeeded",
"object": "event",
"data": {
"object": {
"id": "in_00000000000000",
"object": "invoice",
"amount_due": 999,
"application_fee": null,
"attempt_count": 1,
"attempted": true,
"charge": "ch_18EcOcLrgDIZ7iq8TaNlErVv",
"closed": true,
"currency": "eur",
"customer": "cus_00000000000000",
"created": 1464084258,
"description": null,
"discount": null,
"ending_balance": 0,
"forgiven": false,
"lines": {
"data": [{
"id": "sub_00000000000000",
"object": "line_item",
"amount": 50,
"currency": "eur",
"description": null,
"discountable": true,
"livemode": true,
"metadata": {},
"period": {
"start": 1500637196,
"end": 1532173196
},
"plan": {
"id": "platinum",
"object": "plan",
"amount": 500,
"created": 1499943145,
"currency": "eur",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {},
"name": "New Plan Test",
"statement_descriptor": null,
"trial_period_days": null
},
"proration": false,
"quantity": 1,
"subscription": null,
"subscription_item": "si_18ZfWyLrgDIZ7iq8fSlSNGIV",
"type": "subscription"
},
{
"id": "sub_00000000000000",
"object": "line_item",
"amount": 50,
"currency": "eur",
"description": null,
"discountable": true,
"livemode": true,
"metadata": {},
"period": {
"start": 1500637196,
"end": 1532173196
},
"plan": {
"id": "gold",
"object": "plan",
"amount": 300,
"created": 1499943155,
"currency": "eur",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {},
"name": "New gold Plan Test",
"statement_descriptor": null,
"trial_period_days": null
},
"proration": false,
"quantity": 1,
"subscription": null,
"subscription_item": "si_18ZfWyLrgDIZ7iq8fSlSNGIV",
"type": "subscription"
}],
"total_count": 1,
"object": "list",
"url": "/v1/invoices/in_18EcOcLrgDIZ7iq8zsDkunZ0/lines"
},
"livemode": false,
"metadata": {},
"next_payment_attempt": null,
"paid": true,
"period_end": 1464084258,
"period_start": 1464084258,
"receipt_number": null,
"starting_balance": 0,
"statement_descriptor": null,
"subscription": "sub_00000000000000",
"subtotal": 999,
"tax": null,
"tax_percent": null,
"total": 999,
"webhooks_delivered_at": 1464084258
}
}
}