mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added active flag to products API (#14021)
refs https://github.com/TryGhost/Team/issues/1252 This flag is used to determine whether a Tier (currently product) as active or archived
This commit is contained in:
parent
1d73c17d5b
commit
231a7b9bf4
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,7 @@ function serializeProduct(product, options, apiType) {
|
|||
name: json.name,
|
||||
description: json.description,
|
||||
slug: json.slug,
|
||||
active: json.active,
|
||||
type: json.type,
|
||||
created_at: json.created_at,
|
||||
updated_at: json.updated_at,
|
||||
|
@ -161,6 +162,8 @@ function createSerializer(debugString, serialize) {
|
|||
* @prop {string} name
|
||||
* @prop {string} slug
|
||||
* @prop {string} description
|
||||
* @prop {boolean} active
|
||||
* @prop {string} type
|
||||
* @prop {Date} created_at
|
||||
* @prop {Date} updated_at
|
||||
* @prop {StripePrice[]} [stripe_prices]
|
||||
|
|
Loading…
Add table
Reference in a new issue