mirror of https://github.com/zulip/zulip.git
130 lines
4.3 KiB
JSON
130 lines
4.3 KiB
JSON
|
{
|
||
|
"created":1326853478,
|
||
|
"livemode":false,
|
||
|
"id":"customer.subscription.updated_00000000000000",
|
||
|
"type":"customer.subscription.updated",
|
||
|
"object":"event",
|
||
|
"request":null,
|
||
|
"pending_webhooks":1,
|
||
|
"api_version":"2018-02-28",
|
||
|
"data":{
|
||
|
"object":{
|
||
|
"id":"sub_00000000000000",
|
||
|
"object":"subscription",
|
||
|
"application_fee_percent":null,
|
||
|
"billing":"charge_automatically",
|
||
|
"billing_cycle_anchor":1542644734,
|
||
|
"cancel_at_period_end":false,
|
||
|
"canceled_at":null,
|
||
|
"created":1542644734,
|
||
|
"current_period_end":1545236734,
|
||
|
"current_period_start":1542644734,
|
||
|
"customer":"cus_00000000000000",
|
||
|
"days_until_due":null,
|
||
|
"default_source":null,
|
||
|
"discount":null,
|
||
|
"ended_at":null,
|
||
|
"items":{
|
||
|
"object":"list",
|
||
|
"data":[
|
||
|
{
|
||
|
"id":"si_00000000000000",
|
||
|
"object":"subscription_item",
|
||
|
"created":1542644735,
|
||
|
"metadata":{
|
||
|
|
||
|
},
|
||
|
"plan":{
|
||
|
"id":"gold_00000000000000",
|
||
|
"object":"plan",
|
||
|
"active":true,
|
||
|
"aggregate_usage":null,
|
||
|
"amount":2000,
|
||
|
"billing_scheme":"per_unit",
|
||
|
"created":1394782612,
|
||
|
"currency":"cad",
|
||
|
"interval":"month",
|
||
|
"interval_count":1,
|
||
|
"livemode":false,
|
||
|
"metadata":{
|
||
|
|
||
|
},
|
||
|
"nickname":null,
|
||
|
"product":"prod_00000000000000",
|
||
|
"tiers":null,
|
||
|
"tiers_mode":null,
|
||
|
"transform_usage":null,
|
||
|
"trial_period_days":null,
|
||
|
"usage_type":"licensed"
|
||
|
},
|
||
|
"quantity":1,
|
||
|
"subscription":"sub_00000000000000"
|
||
|
}
|
||
|
],
|
||
|
"has_more":false,
|
||
|
"total_count":1,
|
||
|
"url":"/v1/subscription_items?subscription=sub_E0G5y2VdPVOB4o"
|
||
|
},
|
||
|
"livemode":false,
|
||
|
"metadata":{
|
||
|
|
||
|
},
|
||
|
"plan":{
|
||
|
"id":"gold_00000000000000",
|
||
|
"object":"plan",
|
||
|
"active":true,
|
||
|
"aggregate_usage":null,
|
||
|
"amount":2000,
|
||
|
"billing_scheme":"per_unit",
|
||
|
"created":1394782612,
|
||
|
"currency":"cad",
|
||
|
"interval":"month",
|
||
|
"interval_count":1,
|
||
|
"livemode":false,
|
||
|
"metadata":{
|
||
|
|
||
|
},
|
||
|
"nickname":null,
|
||
|
"product":"prod_00000000000000",
|
||
|
"tiers":null,
|
||
|
"tiers_mode":null,
|
||
|
"transform_usage":null,
|
||
|
"trial_period_days":null,
|
||
|
"usage_type":"licensed"
|
||
|
},
|
||
|
"quantity":1,
|
||
|
"start":1542644734,
|
||
|
"status":"active",
|
||
|
"tax_percent":null,
|
||
|
"trial_end":null,
|
||
|
"trial_start":null
|
||
|
},
|
||
|
"previous_attributes":{
|
||
|
"plan":{
|
||
|
"id":"OLD_00000000000000",
|
||
|
"object":"plan",
|
||
|
"active":true,
|
||
|
"aggregate_usage":null,
|
||
|
"amount":2000,
|
||
|
"billing_scheme":"per_unit",
|
||
|
"created":1542644734,
|
||
|
"currency":"cad",
|
||
|
"interval":"month",
|
||
|
"interval_count":1,
|
||
|
"livemode":false,
|
||
|
"metadata":{
|
||
|
|
||
|
},
|
||
|
"nickname":null,
|
||
|
"product":"prod_00000000000000",
|
||
|
"tiers":null,
|
||
|
"tiers_mode":null,
|
||
|
"transform_usage":null,
|
||
|
"trial_period_days":null,
|
||
|
"usage_type":"licensed",
|
||
|
"name":"Old plan"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|