diff --git a/.changeset/five-coats-drum.md b/.changeset/five-coats-drum.md new file mode 100644 index 000000000..036879362 --- /dev/null +++ b/.changeset/five-coats-drum.md @@ -0,0 +1,6 @@ +--- +'@commercetools-test-data/commons': patch +'@commercetools-test-data/cart': patch +--- + +Remove invalid states from address presets for european b2b companies diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.spec.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.spec.ts index f9b9fc898..c514e1a9e 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.spec.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.spec.ts @@ -93,7 +93,7 @@ describe(`with eagleHeavyLiftTechnologiesIncUs preset`, () => { "key": "eagle-heavy-lift-technologies-inc-us", "name": "Eagle Heavy Lift Technologies Inc.", "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "Explicit", "stores": [ { @@ -197,7 +197,6 @@ describe(`with eagleHeavyLiftTechnologiesIncUs preset`, () => { "key": "eagle-heavy-lift-technologies-inc-us", "name": "Eagle Heavy Lift Technologies Inc.", "shippingAddresses": undefined, - "status": "Active", "storeMode": "Explicit", "stores": [ { diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.ts index 61762311f..0e6ca4565 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us.ts @@ -20,7 +20,6 @@ const eagleHeavyLiftTechnologiesIncUs = (): TCompanyDraftBuilder => .unitType(unitType.Company) .storeMode(storeMode.Explicit) .associateMode(associateMode.Explicit) - .status(status.Active) .stores([KeyReferenceDraft.presets.store().key(usLargeCustomersStore.key!)]) .associates([ AssociateDraft.presets.sampleDataB2B.jamesSmith(), diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.spec.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.spec.ts index ec229a426..74793be3d 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.spec.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.spec.ts @@ -93,7 +93,7 @@ describe(`with libertyCraneSolutionsLlcUs preset`, () => { "key": "liberty-crane-solutions-llc-us", "name": "Liberty Crane Solutions LLC", "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "Explicit", "stores": [ { @@ -197,7 +197,6 @@ describe(`with libertyCraneSolutionsLlcUs preset`, () => { "key": "liberty-crane-solutions-llc-us", "name": "Liberty Crane Solutions LLC", "shippingAddresses": undefined, - "status": "Active", "storeMode": "Explicit", "stores": [ { diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.ts index 4e746c632..2b8ec4468 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us.ts @@ -20,7 +20,6 @@ const libertyCraneSolutionsLlcUs = (): TCompanyDraftBuilder => .unitType(unitType.Company) .storeMode(storeMode.Explicit) .associateMode(associateMode.Explicit) - .status(status.Active) .stores([ KeyReferenceDraft.presets.store().key(usMediumCustomersStore.key!), ]) diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.spec.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.spec.ts index 204d56f59..878287099 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.spec.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.spec.ts @@ -31,7 +31,7 @@ describe(`with lifttechSolutionsLtd preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, @@ -93,7 +93,7 @@ describe(`with lifttechSolutionsLtd preset`, () => { "key": "lifttech-solutions-ltd", "name": "LiftTech Solutions Ltd", "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "Explicit", "stores": [ { @@ -135,7 +135,7 @@ describe(`with lifttechSolutionsLtd preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, @@ -197,7 +197,6 @@ describe(`with lifttechSolutionsLtd preset`, () => { "key": "lifttech-solutions-ltd", "name": "LiftTech Solutions Ltd", "shippingAddresses": undefined, - "status": "Active", "storeMode": "Explicit", "stores": [ { diff --git a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.ts b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.ts index 93e5fb529..a26e26640 100644 --- a/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.ts +++ b/models/business-unit/src/company/company-draft/presets/sample-data-b2b/lifttech-solutions-ltd.ts @@ -20,7 +20,6 @@ const lifttechSolutionsLtd = (): TCompanyDraftBuilder => .unitType(unitType.Company) .storeMode(storeMode.Explicit) .associateMode(associateMode.Explicit) - .status(status.Active) .stores([KeyReferenceDraft.presets.store().key(deFrUkStore.key!)]) .associates([ AssociateDraft.presets.sampleDataB2B.oliverSmith(), diff --git a/models/business-unit/src/company/company-draft/transformers.ts b/models/business-unit/src/company/company-draft/transformers.ts index 5dd1c28b8..e977b2e0a 100644 --- a/models/business-unit/src/company/company-draft/transformers.ts +++ b/models/business-unit/src/company/company-draft/transformers.ts @@ -10,6 +10,7 @@ const transformers = { }), graphql: Transformer('graphql', { buildFields: ['addresses', 'associates', 'stores'], + removeFields: ['status'], }), }; diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.spec.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.spec.ts index c14c5a051..16a0db81d 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.spec.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.spec.ts @@ -31,7 +31,7 @@ describe(`with lifttechSolutionsLtdDe preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, @@ -77,14 +77,12 @@ describe(`with lifttechSolutionsLtdDe preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-de", "name": "LiftTech Lösungen GmbH", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "FromParent", "stores": undefined, "unitType": "Division", @@ -121,7 +119,7 @@ describe(`with lifttechSolutionsLtdDe preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, @@ -167,14 +165,11 @@ describe(`with lifttechSolutionsLtdDe preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-de", "name": "LiftTech Lösungen GmbH", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", "storeMode": "FromParent", "stores": undefined, "unitType": "Division", diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.ts index aae3e08b3..56bdabb81 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de.ts @@ -18,7 +18,6 @@ const lifttechSolutionsLtdDe = (): TDivisionDraftBuilder => .key('lifttech-solutions-ltd-de') .name('LiftTech Lösungen GmbH') .unitType(unitType.Division) - .status(status.Active) .storeMode(storeMode.FromParent) .associateMode(associateMode.ExplicitAndFromParent) .associates([ @@ -28,11 +27,11 @@ const lifttechSolutionsLtdDe = (): TDivisionDraftBuilder => .addresses([ AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdDeAddress(), ]) - .parentUnit([ + .parentUnit( KeyReferenceDraft.presets .businessUnit() - .key(lifttechSolutionsLtdCompany.key!), - ]) + .key(lifttechSolutionsLtdCompany.key!) + ) .defaultShippingAddress(0) .defaultBillingAddress(0); diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.spec.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.spec.ts index 00047b46b..a0a75945f 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.spec.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.spec.ts @@ -31,7 +31,7 @@ describe(`with lifttechSolutionsLtdEs preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, @@ -77,14 +77,12 @@ describe(`with lifttechSolutionsLtdEs preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-es", "name": "LiftTech Soluciones S.L.", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "Explicit", "stores": [ { @@ -126,7 +124,7 @@ describe(`with lifttechSolutionsLtdEs preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, @@ -172,14 +170,11 @@ describe(`with lifttechSolutionsLtdEs preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-es", "name": "LiftTech Soluciones S.L.", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", "storeMode": "Explicit", "stores": [ { diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.ts index ac7441658..bf7441da4 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es.ts @@ -23,7 +23,6 @@ const lifttechSolutionsLtdEs = (): TDivisionDraftBuilder => .key('lifttech-solutions-ltd-es') .name('LiftTech Soluciones S.L.') .unitType(unitType.Division) - .status(status.Active) .storeMode(storeMode.Explicit) .associateMode(associateMode.ExplicitAndFromParent) .stores([KeyReferenceDraft.presets.store().key(spainStore.key!)]) @@ -34,11 +33,11 @@ const lifttechSolutionsLtdEs = (): TDivisionDraftBuilder => .addresses([ AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdEsAddress(), ]) - .parentUnit([ + .parentUnit( KeyReferenceDraft.presets .businessUnit() - .key(lifttechSolutionsLtdCompany.key!), - ]) + .key(lifttechSolutionsLtdCompany.key!) + ) .defaultShippingAddress(0) .defaultBillingAddress(0); diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.spec.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.spec.ts index dfe31781b..ebd828beb 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.spec.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.spec.ts @@ -31,7 +31,7 @@ describe(`with lifttechSolutionsLtdFr preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, @@ -77,14 +77,12 @@ describe(`with lifttechSolutionsLtdFr preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-fr", "name": "LiftTech Solutions SARL", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", + "status": undefined, "storeMode": "FromParent", "stores": undefined, "unitType": "Division", @@ -121,7 +119,7 @@ describe(`with lifttechSolutionsLtdFr preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, @@ -167,14 +165,11 @@ describe(`with lifttechSolutionsLtdFr preset`, () => { "defaultShippingAddress": 0, "key": "lifttech-solutions-ltd-fr", "name": "LiftTech Solutions SARL", - "parentUnit": [ - { - "key": "lifttech-solutions-ltd", - "typeId": "business-unit", - }, - ], + "parentUnit": { + "key": "lifttech-solutions-ltd", + "typeId": "business-unit", + }, "shippingAddresses": undefined, - "status": "Active", "storeMode": "FromParent", "stores": undefined, "unitType": "Division", diff --git a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.ts b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.ts index 96d76924e..55fa6f9a9 100644 --- a/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.ts +++ b/models/business-unit/src/division/division-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr.ts @@ -18,7 +18,6 @@ const lifttechSolutionsLtdFr = (): TDivisionDraftBuilder => .key('lifttech-solutions-ltd-fr') .name('LiftTech Solutions SARL') .unitType(unitType.Division) - .status(status.Active) .storeMode(storeMode.FromParent) .associateMode(associateMode.ExplicitAndFromParent) .associates([ @@ -28,11 +27,11 @@ const lifttechSolutionsLtdFr = (): TDivisionDraftBuilder => .addresses([ AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdFrAddress(), ]) - .parentUnit([ + .parentUnit( KeyReferenceDraft.presets .businessUnit() - .key(lifttechSolutionsLtdCompany.key!), - ]) + .key(lifttechSolutionsLtdCompany.key!) + ) .defaultShippingAddress(0) .defaultBillingAddress(0); diff --git a/models/business-unit/src/division/division-draft/transformers.ts b/models/business-unit/src/division/division-draft/transformers.ts index 4a67c9581..4beacd5a3 100644 --- a/models/business-unit/src/division/division-draft/transformers.ts +++ b/models/business-unit/src/division/division-draft/transformers.ts @@ -10,6 +10,7 @@ const transformers = { }), graphql: Transformer('graphql', { buildFields: ['addresses', 'associates', 'parentUnit', 'stores'], + removeFields: ['status'], }), }; diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.spec.ts index 8ab1a13df..d98c95a03 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.spec.ts index 629bea247..c4a951f4a 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.spec.ts index b890486b9..7cdfa00d2 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.spec.ts index f015c4ade..146e627c0 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.spec.ts index b38db3799..20cb4b6b5 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.spec.ts index 52ed9bbc5..1875565d0 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.spec.ts index 3fa04f7dd..bcbc62ccb 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.spec.ts index 043a144de..09ade0b45 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.spec.ts @@ -97,7 +97,7 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, @@ -214,7 +214,7 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.spec.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.spec.ts index 6e05006b3..ff0d96fd9 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.spec.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.spec.ts @@ -29,7 +29,7 @@ describe(`with lifttechSolutionsLtdAddress preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, @@ -64,7 +64,7 @@ describe(`with lifttechSolutionsLtdAddress preset`, () => { "postalCode": "SW1A 1AA", "region": "England", "salutation": undefined, - "state": "London", + "state": undefined, "streetName": "Baker Street", "streetNumber": "221B", "title": undefined, diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.ts index d4cae27c9..19e617abe 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-address.ts @@ -11,7 +11,6 @@ const lifttechSolutionsLtdAddress = (): TAddressDraftBuilder => .city('London') .country('GB') .region('England') - .state('London') .company('LiftTech Solutions Ltd') .building('C') .apartment('987'); diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.spec.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.spec.ts index a47d5c639..f4e4ad184 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.spec.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.spec.ts @@ -29,7 +29,7 @@ describe(`with lifttechSolutionsLtdDeAddress preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, @@ -64,7 +64,7 @@ describe(`with lifttechSolutionsLtdDeAddress preset`, () => { "postalCode": "12345", "region": "Brandenburg", "salutation": undefined, - "state": "Berlin", + "state": undefined, "streetName": "Hauptstraße", "streetNumber": "456", "title": undefined, diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.ts index 09c182877..472c8d87a 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-address.ts @@ -11,7 +11,6 @@ const lifttechSolutionsLtdDeAddress = (): TAddressDraftBuilder => .city('Berlin') .country('DE') .region('Brandenburg') - .state('Berlin') .company('LiftTech Solutions Ltd DE') .building('D') .apartment('654'); diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.spec.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.spec.ts index ba5828d6d..4460f9ef4 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.spec.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.spec.ts @@ -29,7 +29,7 @@ describe(`with lifttechSolutionsLtdEsAddress preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, @@ -64,7 +64,7 @@ describe(`with lifttechSolutionsLtdEsAddress preset`, () => { "postalCode": "28013", "region": "Community of Madrid", "salutation": undefined, - "state": "Community of Madrid", + "state": undefined, "streetName": "Calle Mayor", "streetNumber": "101", "title": undefined, diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.ts index 98aeec0bf..47f49d849 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-address.ts @@ -11,7 +11,6 @@ const lifttechSolutionsLtdEsAddress = (): TAddressDraftBuilder => .city('Madrid') .country('ES') .region('Community of Madrid') - .state('Community of Madrid') .company('LiftTech Solutions Ltd ES') .building('F') .apartment('567'); diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.spec.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.spec.ts index 98dd263d9..62d8e5b99 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.spec.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.spec.ts @@ -29,7 +29,7 @@ describe(`with lifttechSolutionsLtdFrAddress preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, @@ -64,7 +64,7 @@ describe(`with lifttechSolutionsLtdFrAddress preset`, () => { "postalCode": "75002", "region": "Île-de-France", "salutation": undefined, - "state": "Île-de-France", + "state": undefined, "streetName": "Rue de la Paix", "streetNumber": "789", "title": undefined, diff --git a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.ts b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.ts index 4f301e140..0b02e6e2b 100644 --- a/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.ts +++ b/models/commons/src/address/address-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-address.ts @@ -11,7 +11,6 @@ const lifttechSolutionsLtdFrAddress = (): TAddressDraftBuilder => .city('Paris') .country('FR') .region('Île-de-France') - .state('Île-de-France') .company('LiftTech Solutions Ltd FR') .building('E') .apartment('321');