diff --git a/db/migrations/0027_add_marketing_features_to_products.sql b/db/migrations/0027_add_marketing_features_to_products.sql new file mode 100644 index 000000000..3cff7d720 --- /dev/null +++ b/db/migrations/0027_add_marketing_features_to_products.sql @@ -0,0 +1,2 @@ +ALTER TABLE IF EXISTS stripe.products ADD COLUMN IF NOT EXISTS marketing_features JSONB; + diff --git a/src/schemas/product.ts b/src/schemas/product.ts index 4ef3d6bf5..b6a1ca56f 100644 --- a/src/schemas/product.ts +++ b/src/schemas/product.ts @@ -12,6 +12,7 @@ export const productSchema: JsonSchema = { name: { type: 'string' }, created: { type: 'integer' }, images: { type: 'object' }, + marketing_features: { type: 'object' }, livemode: { type: 'boolean' }, package_dimensions: { type: 'object' }, shippable: { type: 'boolean' }, diff --git a/test/helpers/stripe.ts b/test/helpers/stripe.ts index 48db466a8..baec32672 100644 --- a/test/helpers/stripe.ts +++ b/test/helpers/stripe.ts @@ -548,6 +548,7 @@ export default { created: 1623149335, description: null, images: [], + marketing_features: [], livemode: false, metadata: {}, name: 'fake product', diff --git a/test/stripe/product_created.json b/test/stripe/product_created.json index ab7460992..8548c543a 100644 --- a/test/stripe/product_created.json +++ b/test/stripe/product_created.json @@ -12,6 +12,7 @@ "created": 1623149335, "description": null, "images": [], + "marketing_features": [], "livemode": false, "metadata": {}, "name": "fake product", diff --git a/test/stripe/product_updated.json b/test/stripe/product_updated.json index 0470a7490..3169d45fd 100644 --- a/test/stripe/product_updated.json +++ b/test/stripe/product_updated.json @@ -12,6 +12,7 @@ "created": 1612339919, "description": "Test", "images": [], + "marketing_features": [], "livemode": false, "metadata": {}, "name": "Pro tier",