Skip to content

Commit 162c314

Browse files
committed
feat(products): add product_catalog premium integration
## Context The product catalog is the v2 billing surface and needs an organization switch to mark which organizations are on it. ## Description Add product_catalog to Organization::PREMIUM_INTEGRATIONS, generating organization.product_catalog_enabled? and the with_product_catalog_support scope, and extending the IntegrationTypeEnum and PremiumIntegrationTypeEnum GraphQL enums (schema regenerated). No migration: it is a value in the existing premium_integrations array column.
1 parent 5bc4eb1 commit 162c314

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

app/models/organization.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ class Organization < ApplicationRecord
160160
granular_lifetime_usage
161161
order_forms
162162
revenue_recognition
163+
product_catalog
163164
].freeze
164165

165166
SECURITY_LOGS_RETENTION_DAYS = 90

schema.graphql

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/graphql/types/integrations/premium_integration_type_enum_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
granular_lifetime_usage
3535
order_forms
3636
revenue_recognition
37+
product_catalog
3738
]
3839
end
3940

0 commit comments

Comments
 (0)