forked from stripe-ruby-mock/stripe-ruby-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.subscription.deleted.json
154 lines (152 loc) · 4.54 KB
/
customer.subscription.deleted.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"id": "evt_000000000000000000000000",
"object": "event",
"api_version": "2020-08-27",
"created": 1648320097,
"data": {
"object": {
"id": "sub_000000000000000000000000",
"object": "subscription",
"application_fee_percent": null,
"automatic_tax": {
"enabled": false
},
"billing_cycle_anchor": 1648320096,
"billing_thresholds": null,
"cancel_at": null,
"cancel_at_period_end": false,
"canceled_at": 1648320097,
"collection_method": "charge_automatically",
"created": 1648320096,
"current_period_end": 1650998496,
"current_period_start": 1648320096,
"customer": "cus_00000000000000",
"days_until_due": null,
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [
],
"discount": null,
"ended_at": 1648320097,
"items": {
"object": "list",
"data": [
{
"id": "si_00000000000000",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1648320096,
"metadata": {
},
"plan": {
"id": "price_000000000000000000000000",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 1500,
"amount_decimal": "1500",
"billing_scheme": "per_unit",
"created": 1648320095,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"price": {
"id": "price_000000000000000000000000",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1648320095,
"currency": "usd",
"livemode": false,
"lookup_key": null,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 1500,
"unit_amount_decimal": "1500"
},
"quantity": 1,
"subscription": "sub_000000000000000000000000",
"tax_rates": [
]
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/subscription_items?subscription=sub_000000000000000000000000"
},
"latest_invoice": "in_000000000000000000000000",
"livemode": false,
"metadata": {
},
"next_pending_invoice_item_invoice": null,
"pause_collection": null,
"payment_settings": {
"payment_method_options": null,
"payment_method_types": null
},
"pending_invoice_item_interval": null,
"pending_setup_intent": null,
"pending_update": null,
"plan": {
"id": "price_000000000000000000000000",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 1500,
"amount_decimal": "1500",
"billing_scheme": "per_unit",
"created": 1648320095,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
},
"nickname": null,
"product": "prod_00000000000000",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"quantity": 1,
"schedule": "sub_sched_000000000000000000000000",
"start_date": 1648320096,
"status": "canceled",
"test_clock": null,
"transfer_data": null,
"trial_end": null,
"trial_start": null
}
},
"livemode": false,
"pending_webhooks": 3,
"request": {
"id": "req_00000000000000",
"idempotency_key": "27f56452-b979-42fb-8bc1-219db1e65979"
},
"type": "customer.subscription.deleted"
}