mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
The original commit made a number of well-meaning but suboptimal product
changes to the invoice events, such as threading them under the invoice id
rather than the customer id. It also seems to be causing 500s for
invoiceitem events, though I'm not sure why.
This reverts commit 65489b0391.
84 lines
2.8 KiB
JSON
84 lines
2.8 KiB
JSON
{
|
|
"created": 1326853478,
|
|
"livemode": false,
|
|
"id": "evt_00000000000000",
|
|
"type": "invoice.payment_failed",
|
|
"object": "event",
|
|
"request": null,
|
|
"pending_webhooks": 1,
|
|
"api_version": "2016-07-06",
|
|
"data": {
|
|
"object": {
|
|
"id": "in_00000000000000",
|
|
"object": "invoice",
|
|
"amount_due": 0,
|
|
"application_fee": null,
|
|
"attempt_count": 0,
|
|
"attempted": true,
|
|
"charge": null,
|
|
"closed": false,
|
|
"currency": "aud",
|
|
"customer": "cus_00000000000000",
|
|
"date": 1480672129,
|
|
"description": null,
|
|
"discount": null,
|
|
"ending_balance": null,
|
|
"forgiven": false,
|
|
"lines": {
|
|
"data": [
|
|
{
|
|
"id": "sub_9fYmJQOQy04yoh",
|
|
"object": "line_item",
|
|
"amount": 2000,
|
|
"currency": "aud",
|
|
"description": null,
|
|
"discountable": true,
|
|
"livemode": true,
|
|
"metadata": {},
|
|
"period": {
|
|
"start": 1483350529,
|
|
"end": 1486028929
|
|
},
|
|
"plan": {
|
|
"id": "gold",
|
|
"object": "plan",
|
|
"amount": 2000,
|
|
"created": 1480672129,
|
|
"currency": "aud",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Gold Special",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"proration": false,
|
|
"quantity": 1,
|
|
"subscription": null,
|
|
"type": "subscription"
|
|
}
|
|
],
|
|
"total_count": 1,
|
|
"object": "list",
|
|
"url": "/v1/invoices/in_19MDevCV4wXizEw4B4lY7YPR/lines"
|
|
},
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"next_payment_attempt": 1480675729,
|
|
"paid": false,
|
|
"period_end": 1480672129,
|
|
"period_start": 1480672129,
|
|
"receipt_number": null,
|
|
"starting_balance": 0,
|
|
"statement_descriptor": null,
|
|
"subscription": null,
|
|
"subtotal": 0,
|
|
"tax": null,
|
|
"tax_percent": null,
|
|
"total": 0,
|
|
"webhooks_delivered_at": null
|
|
}
|
|
}
|
|
}
|