forked from stripe-ruby-mock/stripe-ruby-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.subscription.updated.json
78 lines (78 loc) · 2.07 KB
/
customer.subscription.updated.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
{
"created": 1326853478,
"livemode": false,
"id": "evt_00000000000000",
"type": "customer.subscription.updated",
"object": "event",
"data": {
"object": {
"id": "su_00000000000000",
"items": {
"object": "list",
"data": [{
"id": "si_00000000000000",
"object": "subscription_item",
"created": 1497881783,
"plan": {
"interval": "month",
"name": "Member's Club",
"amount": 100,
"currency": "usd",
"id": "fkx0AFo_00000000000000",
"object": "plan",
"livemode": false,
"interval_count": 1,
"trial_period_days": null,
"metadata": {}
},
"quantity": 1
},
{
"id": "si_00000000000001",
"object": "subscription_item",
"created": 1497881788,
"plan": {
"interval": "month",
"name": "Vistor's Club",
"amount": 200,
"currency": "eur",
"id": "fkx0AFo_00000000000001",
"object": "plan",
"livemode": false,
"interval_count": 1,
"trial_period_days": null,
"metadata": {}
},
"quantity": 5
}
]
},
"object": "subscription",
"start": 1381080561,
"status": "active",
"customer": "cus_00000000000000",
"cancel_at_period_end": false,
"current_period_start": 1381080561,
"current_period_end": 1383758961,
"ended_at": null,
"trial_start": null,
"trial_end": null,
"canceled_at": null,
"quantity": 1,
"application_fee_percent": null
},
"previous_attributes": {
"plan": {
"interval": "month",
"name": "Old plan",
"amount": 100,
"currency": "usd",
"id": "OLD_PLAN_ID",
"object": "plan",
"livemode": false,
"interval_count": 1,
"trial_period_days": null
}
}
}
}