@medusajs/types
Advanced tools
Comparing version
@@ -109,2 +109,6 @@ import { CreateMoneyAmountDTO, MoneyAmountDTO } from "./money-amount"; | ||
price_set_id: string; | ||
/** | ||
* The rules to add to the price. The object's keys are rule types' `rule_attribute` attribute, and values are the value of that rule associated with this price. | ||
*/ | ||
rules?: Record<string, string>; | ||
} | ||
@@ -111,0 +115,0 @@ /** |
import { BaseFilterable } from "../../dal"; | ||
import { PriceSetDTO } from "./price-set"; | ||
import { PriceSetMoneyAmountDTO } from "./price-set-money-amount"; | ||
import { RuleTypeDTO } from "./rule-type"; | ||
@@ -58,14 +59,18 @@ /** | ||
/** | ||
* The ID of the price rule. | ||
* The ID of the associated price set. | ||
*/ | ||
id: string; | ||
price_set_id?: string; | ||
/** | ||
* The ID of the associated price set. | ||
*/ | ||
price_set_id: string; | ||
price_set?: string | PriceSetDTO; | ||
/** | ||
* The ID of the associated rule type. | ||
*/ | ||
rule_type_id: string; | ||
rule_type_id?: string; | ||
/** | ||
* The ID of the associated rule type. | ||
*/ | ||
rule_type?: string | RuleTypeDTO; | ||
/** | ||
* The value of the price rule. | ||
@@ -75,3 +80,4 @@ */ | ||
priority?: number; | ||
price_set_money_amount_id: string; | ||
price_set_money_amount_id?: string; | ||
price_set_money_amount?: string | PriceSetMoneyAmountDTO; | ||
} | ||
@@ -78,0 +84,0 @@ /** |
@@ -60,2 +60,3 @@ import { BaseFilterable } from "../../dal"; | ||
money_amount?: MoneyAmountDTO | string; | ||
number_rules?: number; | ||
} | ||
@@ -62,0 +63,0 @@ /** |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.11.8", | ||
"version": "1.11.9-snapshot-20231128140411", | ||
"description": "Medusa Types definition", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
442937
0.88%12523
0.67%2
100%