Skip to content

Commit

Permalink
chore(td): use standalone price config for b2b product presets
Browse files Browse the repository at this point in the history
  • Loading branch information
jaikamat committed Feb 27, 2024
1 parent 0fab90a commit 80765bd
Show file tree
Hide file tree
Showing 144 changed files with 288 additions and 144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with a789Bc preset`, () => {
"nl-NL": "A789 BC Diepe Mijnbouw Graafmachine",
"pt-PT": "A789 BC Escavadeira para Mineração Profunda",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with a789Bc preset`, () => {
"value": "A789 BC Deep Mining Excavator",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const deepMiningExcavatorsCategory = CategoryDraft.presets.sampleDataB2B
const a789Bc = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('a789-bc')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with aa123Qr preset`, () => {
"nl-NL": "AA123 QR Wegnivelleermachine",
"pt-PT": "AA123 QR Niveladora de Estradas",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with aa123Qr preset`, () => {
"value": "AA123 QR Road Grader",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const roadGradersCategory = CategoryDraft.presets.sampleDataB2B
const aa123Qr = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('aa123-qr')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe(`with aaa789Uv preset`, () => {
"nl-NL": "AAA789 UV Exploratieboor",
"pt-PT": "AAA789 UV Perfuratriz de Exploração",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -377,7 +377,7 @@ describe(`with aaa789Uv preset`, () => {
"value": "AAA789 UV Exploration Drill",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const explorationDrillsCategory = CategoryDraft.presets.sampleDataB2B
const aaa789Uv = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('aaa789-uv')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe(`with airFilter preset`, () => {
"nl-NL": "Luchtfilter",
"pt-PT": "Filtro de ar",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down Expand Up @@ -179,7 +179,7 @@ describe(`with airFilter preset`, () => {
"value": "Air Filter",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -33,6 +34,7 @@ const sparePartsCategory = CategoryDraft.presets.sampleDataB2B
const airFilter = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('air-filter')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe(`with alternator preset`, () => {
"nl-NL": "Dynamo",
"pt-PT": "Alternador",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down Expand Up @@ -179,7 +179,7 @@ describe(`with alternator preset`, () => {
"value": "Alternator",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -33,6 +34,7 @@ const sparePartsCategory = CategoryDraft.presets.sampleDataB2B
const alternator = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('alternator')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with b456St preset`, () => {
"nl-NL": "B456 ST Bouwlader",
"pt-PT": "B456 ST Carregadeira de Construção",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with b456St preset`, () => {
"value": "B456 ST Construction Loader",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const constructionLoadersCategory = CategoryDraft.presets.sampleDataB2B
const b456St = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('b456-st')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with bb456St preset`, () => {
"nl-NL": "BB456 ST Luchthavennivelleermachine",
"pt-PT": "BB456 ST Niveladora de Aeroporto",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with bb456St preset`, () => {
"value": "BB456 ST Airport Grader",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const airportGradersCategory = CategoryDraft.presets.sampleDataB2B
const bb456St = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('bb456-st')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe(`with bbb234Wx preset`, () => {
"nl-NL": "BBB234 WX Productieboor",
"pt-PT": "BBB234 WX Perfuratriz de Produção",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -377,7 +377,7 @@ describe(`with bbb234Wx preset`, () => {
"value": "BBB234 WX Production Drill",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const productionDrillsCategory = CategoryDraft.presets.sampleDataB2B
const bbb234Wx = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('bbb234-wx')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe(`with brakePadSet preset`, () => {
"nl-NL": "Remblokkenset",
"pt-PT": "Conjunto de pastilhas de freio",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down Expand Up @@ -180,7 +180,7 @@ describe(`with brakePadSet preset`, () => {
"value": "Brake Pad Set",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "generic-product",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -33,6 +34,7 @@ const sparePartsCategory = CategoryDraft.presets.sampleDataB2B
const brakePadSet = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('brake-pad-set')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with c789Uv preset`, () => {
"nl-NL": "C789 UV Bouwlader",
"pt-PT": "C789 UV Carregadeira de Construção",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with c789Uv preset`, () => {
"value": "C789 UV Construction Loader",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const constructionLoadersCategory = CategoryDraft.presets.sampleDataB2B
const c789Uv = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('c789-uv')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe(`with cc789Uv preset`, () => {
"nl-NL": "CC789 UV Luchthavennivelleermachine",
"pt-PT": "CC789 UV Niveladora de Aeroporto",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -335,7 +335,7 @@ describe(`with cc789Uv preset`, () => {
"value": "CC789 UV Airport Grader",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-earthmoving-and-construction-equipment",
"typeId": "product-type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type TTaxCategoryDraft,
} from '@commercetools-test-data/tax-category';
import { ProductVariantDraft } from '../../../../product-variant';
import { productPriceMode } from '../../../constants';
import { ProductDraft } from '../../../index';
import type { TProductDraftBuilder } from '../../../types';

Expand All @@ -34,6 +35,7 @@ const airportGradersCategory = CategoryDraft.presets.sampleDataB2B
const cc789Uv = (): TProductDraftBuilder =>
ProductDraft.presets
.empty()
.priceMode(productPriceMode.Standalone)
.key('cc789-uv')
.name(
LocalizedStringDraft.presets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe(`with ccc567Yz preset`, () => {
"nl-NL": "CCC567 YZ Productieboor",
"pt-PT": "CCC567 YZ Perfuratriz de Produção",
},
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down Expand Up @@ -377,7 +377,7 @@ describe(`with ccc567Yz preset`, () => {
"value": "CCC567 YZ Production Drill",
},
],
"priceMode": undefined,
"priceMode": "Standalone",
"productType": {
"key": "heavy-lifting-and-specialized-equipment",
"typeId": "product-type",
Expand Down
Loading

0 comments on commit 80765bd

Please sign in to comment.