forked from stripe-ruby-mock/stripe-ruby-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoiceitem.created.json
95 lines (93 loc) · 2.44 KB
/
invoiceitem.created.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
{
"id": "evt_000000000000000000000000",
"object": "event",
"api_version": "2020-08-27",
"created": 1648320097,
"data": {
"object": {
"id": "ii_000000000000000000000000",
"object": "invoiceitem",
"amount": -1500,
"currency": "usd",
"customer": "cus_00000000000000",
"date": 1648320097,
"description": "Unused time on myproduct after 26 Mar 2022",
"discountable": false,
"discounts": [
],
"invoice": null,
"livemode": false,
"metadata": {
},
"period": {
"end": 1650998496,
"start": 1648320097
},
"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"
},
"proration": true,
"quantity": 1,
"subscription": "sub_000000000000000000000000",
"subscription_item": "si_00000000000000",
"tax_rates": [
],
"test_clock": null,
"unit_amount": -1500,
"unit_amount_decimal": "-1500"
}
},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_00000000000000",
"idempotency_key": "27f56452-b979-42fb-8bc1-219db1e65979"
},
"type": "invoiceitem.created"
}