fix(pricing,types): remove is_dynamic from model + types (#5664)

what:

Removing this until we introduce dynamic pricing. 

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
Riqwan Thamir
2023-11-22 19:28:48 +00:00
committed by GitHub
co-authored by Shahed Nasser
parent 9f9db39698
commit 6025c702f3
4 changed files with 12 additions and 34 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/pricing": patch
"@medusajs/types": patch
---
fix(pricing,types): remove is_dynamic from model + types
@@ -39,9 +39,6 @@ export default class PriceRule {
}) })
rule_type: RuleType rule_type: RuleType
@Property({ columnType: "boolean", default: false })
is_dynamic: boolean
@Property({ columnType: "text" }) @Property({ columnType: "text" })
value: string value: string
@@ -36,8 +36,6 @@ export interface MoneyAmountDTO {
max_quantity?: number max_quantity?: number
/** /**
* The details of the relation between the money amount and its associated price set. * The details of the relation between the money amount and its associated price set.
*
* @expandable
*/ */
price_set_money_amount?: PriceSetMoneyAmountDTO price_set_money_amount?: PriceSetMoneyAmountDTO
} }
@@ -18,7 +18,6 @@ export interface PriceRuleDTO {
price_set_id: string price_set_id: string
/** /**
* The associated price set. * The associated price set.
*
* @expandable * @expandable
*/ */
price_set: PriceSetDTO price_set: PriceSetDTO
@@ -32,13 +31,6 @@ export interface PriceRuleDTO {
* @expandable * @expandable
*/ */
rule_type: RuleTypeDTO rule_type: RuleTypeDTO
/**
* @ignore
* @privateRemarks
*
* Behavior behind this property is not implemented yet.
*/
is_dynamic: boolean
/** /**
* The value of the price rule. * The value of the price rule.
*/ */
@@ -76,13 +68,6 @@ export interface CreatePriceRuleDTO {
* The ID of the associated rule type. * The ID of the associated rule type.
*/ */
rule_type_id: string rule_type_id: string
/**
* @ignore
* @privateRemarks
*
* Behavior behind this property is not implemented yet.
*/
is_dynamic?: boolean
/** /**
* The value of the price rule. * The value of the price rule.
*/ */
@@ -101,13 +86,6 @@ export interface UpdatePriceRuleDTO {
id: string id: string
price_set_id?: string price_set_id?: string
rule_type_id?: string rule_type_id?: string
/**
* @ignore
* @privateRemark
*
* Behavior behind this property is not implemented yet.
*/
is_dynamic?: boolean
/** /**
* The value of the price rule. * The value of the price rule.
*/ */
@@ -128,7 +106,6 @@ export interface UpdatePriceRuleDTO {
/** /**
* @interface * @interface
*
* Filters to apply on price rules. * Filters to apply on price rules.
*/ */
export interface FilterablePriceRuleProps export interface FilterablePriceRuleProps