Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions db/migrations/0027_add_marketing_features_to_products.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE IF EXISTS stripe.products ADD COLUMN IF NOT EXISTS marketing_features JSONB;

1 change: 1 addition & 0 deletions src/schemas/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
1 change: 1 addition & 0 deletions test/helpers/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ export default {
created: 1623149335,
description: null,
images: [],
marketing_features: [],
livemode: false,
metadata: {},
name: 'fake product',
Expand Down
1 change: 1 addition & 0 deletions test/stripe/product_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"created": 1623149335,
"description": null,
"images": [],
"marketing_features": [],
"livemode": false,
"metadata": {},
"name": "fake product",
Expand Down
1 change: 1 addition & 0 deletions test/stripe/product_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"created": 1612339919,
"description": "Test",
"images": [],
"marketing_features": [],
"livemode": false,
"metadata": {},
"name": "Pro tier",
Expand Down