0
Fork 0
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:
Fabien 'egg' O'Carroll 2022-01-20 17:46:53 +02:00 committed by GitHub
parent 1d73c17d5b
commit 231a7b9bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]