chore: pricing models uses standardized relationships attributes (#6767)
what: - all relationships under all models are standardized
This commit is contained in:
+18
-18
@@ -136,65 +136,65 @@ moduleIntegrationTestRunner({
|
||||
{
|
||||
id: "psma-PLN",
|
||||
title: "psma PLN",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-PLN",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-PLN",
|
||||
rules_count: 0,
|
||||
},
|
||||
{
|
||||
id: "psma-company_id-EUR",
|
||||
title: "psma EUR - company_id",
|
||||
price_set: "price-set-EUR",
|
||||
money_amount: "money-amount-company_id-EUR",
|
||||
price_set_id: "price-set-EUR",
|
||||
money_amount_id: "money-amount-company_id-EUR",
|
||||
rules_count: 1,
|
||||
},
|
||||
{
|
||||
id: "psma-company_id-PLN",
|
||||
title: "psma PLN - company_id",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-company_id-PLN",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-company_id-PLN",
|
||||
rules_count: 1,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id-PLN",
|
||||
title: "psma PLN - region_id",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id-PLN",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id-PLN",
|
||||
rules_count: 1,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id+company_id-PLN",
|
||||
title: "psma region_id + company_id",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id+company_id-PLN",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id+company_id-PLN",
|
||||
rules_count: 2,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id-PLN-5-qty",
|
||||
title: "psma PLN - region_id 5 qty",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id-PLN-5-qty",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id-PLN-5-qty",
|
||||
rules_count: 1,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id_company_id-PL-EUR",
|
||||
title: "psma PLN - region_id PL with EUR currency",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id-PL-EUR",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id-PL-EUR",
|
||||
rules_count: 2,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id_company_id-PL-EUR-4-qty",
|
||||
title: "psma PLN - region_id PL with EUR currency for quantity 4",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id-PL-EUR-4-qty",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id-PL-EUR-4-qty",
|
||||
rules_count: 2,
|
||||
},
|
||||
{
|
||||
id: "psma-region_id_company_id-PL-EUR-customer-group",
|
||||
title:
|
||||
"psma PLN - region_id PL with EUR currency for customer group",
|
||||
price_set: "price-set-PLN",
|
||||
money_amount: "money-amount-region_id-PL-EUR-customer-group",
|
||||
price_set_id: "price-set-PLN",
|
||||
money_amount_id: "money-amount-region_id-PL-EUR-customer-group",
|
||||
rules_count: 3,
|
||||
},
|
||||
]
|
||||
|
||||
+3
-2
@@ -130,6 +130,7 @@ moduleIntegrationTestRunner({
|
||||
price_set: {
|
||||
id: "price-set-1",
|
||||
},
|
||||
price_set_id: "price-set-1",
|
||||
},
|
||||
])
|
||||
})
|
||||
@@ -283,8 +284,8 @@ moduleIntegrationTestRunner({
|
||||
const psma: PriceSetMoneyAmount = testManager.create(
|
||||
PriceSetMoneyAmount,
|
||||
{
|
||||
price_set: "price-set-1",
|
||||
money_amount: ma.id,
|
||||
price_set_id: "price-set-1",
|
||||
money_amount_id: ma.id,
|
||||
title: "test",
|
||||
rules_count: 0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user