diff --git a/src/api/subscription-price/content-types/subscription-price/schema.json b/src/api/subscription-price/content-types/subscription-price/schema.json index 8eca092..e321f67 100644 --- a/src/api/subscription-price/content-types/subscription-price/schema.json +++ b/src/api/subscription-price/content-types/subscription-price/schema.json @@ -38,6 +38,10 @@ }, "description": { "type": "text" + }, + "days": { + "type": "integer", + "required": true } } } diff --git a/src/api/subscription-setting/content-types/subscription-setting/schema.json b/src/api/subscription-setting/content-types/subscription-setting/schema.json index 5d76749..72423bf 100644 --- a/src/api/subscription-setting/content-types/subscription-setting/schema.json +++ b/src/api/subscription-setting/content-types/subscription-setting/schema.json @@ -25,18 +25,6 @@ "type": "integer", "required": true, "default": 1 - }, - "description": { - "type": "text" - }, - "trialPeriodDays": { - "type": "integer", - "required": true, - "default": 7 - }, - "trialEnabled": { - "type": "boolean", - "required": true } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 7d64e6d..8b4adf4 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -680,6 +680,7 @@ export interface ApiSubscriptionPriceSubscriptionPrice createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; currency: Schema.Attribute.String & Schema.Attribute.DefaultTo<'RUB'>; + days: Schema.Attribute.Integer & Schema.Attribute.Required; description: Schema.Attribute.Text; isActive: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; locale: Schema.Attribute.String & Schema.Attribute.Private; @@ -715,7 +716,6 @@ export interface ApiSubscriptionSettingSubscriptionSetting createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - description: Schema.Attribute.Text; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', @@ -732,10 +732,6 @@ export interface ApiSubscriptionSettingSubscriptionSetting referralRewardDays: Schema.Attribute.Integer & Schema.Attribute.Required & Schema.Attribute.DefaultTo<3>; - trialEnabled: Schema.Attribute.Boolean & Schema.Attribute.Required; - trialPeriodDays: Schema.Attribute.Integer & - Schema.Attribute.Required & - Schema.Attribute.DefaultTo<7>; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;