From ee0ff7111b0521d2e8d789e53130142c188a6462 Mon Sep 17 00:00:00 2001 From: Byron Wall <87667330+ByronDWall@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:23:59 -0500 Subject: [PATCH] =?UTF-8?q?fix(cart=20draft=20presets):=20use=20company=20?= =?UTF-8?q?address=20as=20shipping=20address=20inst=E2=80=A6=20(#496)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(cart draft presets): use company address as shipping address instead of customer address * chore(changeset): add changeset --- .changeset/red-dingos-grin.md | 5 + ...vy-lift-technologies-inc-us-cart-1.spec.ts | 110 +++++------------- ...e-heavy-lift-technologies-inc-us-cart-1.ts | 4 +- ...vy-lift-technologies-inc-us-cart-2.spec.ts | 110 +++++------------- ...e-heavy-lift-technologies-inc-us-cart-2.ts | 4 +- ...erty-crane-solutions-llc-us-cart-1.spec.ts | 110 +++++------------- .../liberty-crane-solutions-llc-us-cart-1.ts | 4 +- ...erty-crane-solutions-llc-us-cart-2.spec.ts | 110 +++++------------- .../liberty-crane-solutions-llc-us-cart-2.ts | 4 +- .../lifttech-solutions-ltd-cart-1.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-cart-1.ts | 4 +- .../lifttech-solutions-ltd-cart-2.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-cart-2.ts | 4 +- .../lifttech-solutions-ltd-de-cart-1.spec.ts | 98 ++++------------ .../lifttech-solutions-ltd-de-cart-1.ts | 4 +- .../lifttech-solutions-ltd-de-cart-2.spec.ts | 98 ++++------------ .../lifttech-solutions-ltd-de-cart-2.ts | 4 +- .../lifttech-solutions-ltd-es-cart-1.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-es-cart-1.ts | 4 +- .../lifttech-solutions-ltd-es-cart-2.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-es-cart-2.ts | 4 +- .../lifttech-solutions-ltd-fr-cart-1.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-fr-cart-1.ts | 4 +- .../lifttech-solutions-ltd-fr-cart-2.spec.ts | 106 +++++------------ .../lifttech-solutions-ltd-fr-cart-2.ts | 4 +- 25 files changed, 341 insertions(+), 984 deletions(-) create mode 100644 .changeset/red-dingos-grin.md diff --git a/.changeset/red-dingos-grin.md b/.changeset/red-dingos-grin.md new file mode 100644 index 000000000..a45e5f261 --- /dev/null +++ b/.changeset/red-dingos-grin.md @@ -0,0 +1,5 @@ +--- +'@commercetools-test-data/cart': patch +--- + +use company address as shipping address insteead of customer address in b2b cart draft presets diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.spec.ts index a7a75bc12..8e156973a 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.spec.ts @@ -8,34 +8,7 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart1 preset`, () => { expect(eagleHeavyLiftTechnologiesIncUsCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Michael", - "id": undefined, - "key": undefined, - "lastName": "Williams", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", - "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -104,29 +77,29 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", + "apartment": "789", + "building": "A", + "city": "New York", + "company": "Eagle Heavy Lift Technologies Inc. NY", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Michael", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Williams", + "key": "eagle-heavy-lift-technologies-inc-us-ny-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", + "postalCode": "10001", + "region": "New York", "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", + "state": "New York", + "streetName": "Broadway", + "streetNumber": "123", "title": undefined, }, "shippingMethod": { @@ -153,34 +126,7 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart1 preset`, () => { .toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Michael", - "id": undefined, - "key": undefined, - "lastName": "Williams", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", - "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -249,29 +195,29 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", + "apartment": "789", + "building": "A", + "city": "New York", + "company": "Eagle Heavy Lift Technologies Inc. NY", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Michael", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Williams", + "key": "eagle-heavy-lift-technologies-inc-us-ny-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", + "postalCode": "10001", + "region": "New York", "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", + "state": "New York", + "streetName": "Broadway", + "streetNumber": "123", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.ts index 4ff2d35da..1f5f02ef8 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .michaelWilliams() .build(); -const address = AddressDraft.presets.sampleDataB2B.michaelWilliamsAddress(); +const address = + AddressDraft.presets.sampleDataB2B.eagleHeavyLiftTechnologiesIncUsNy1Address(); const eee123Qr01 = ProductVariantDraft.presets.sampleDataB2B .eee123Qr01() @@ -54,7 +55,6 @@ const eagleHeavyLiftTechnologiesIncUsCart1 = ( .country('US') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(eee123Qr01.sku).quantity(1), LineItemDraft.presets.empty().sku(eee123Qr02.sku).quantity(1), diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.spec.ts index faffc211a..d3d7b86f5 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.spec.ts @@ -8,34 +8,7 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart2 preset`, () => { expect(eagleHeavyLiftTechnologiesIncUsCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Michael", - "id": undefined, - "key": undefined, - "lastName": "Williams", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", - "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -104,29 +77,29 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", + "apartment": "789", + "building": "A", + "city": "New York", + "company": "Eagle Heavy Lift Technologies Inc. NY", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Michael", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Williams", + "key": "eagle-heavy-lift-technologies-inc-us-ny-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", + "postalCode": "10001", + "region": "New York", "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", + "state": "New York", + "streetName": "Broadway", + "streetNumber": "123", "title": undefined, }, "shippingMethod": { @@ -153,34 +126,7 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart2 preset`, () => { .toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Michael", - "id": undefined, - "key": undefined, - "lastName": "Williams", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", - "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -249,29 +195,29 @@ describe(`with eagleHeavyLiftTechnologiesIncUsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Edinburgh", - "company": undefined, - "country": "GB", + "apartment": "789", + "building": "A", + "city": "New York", + "company": "Eagle Heavy Lift Technologies Inc. NY", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Michael", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Williams", + "key": "eagle-heavy-lift-technologies-inc-us-ny-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "EH2 2LE", - "region": "Scotland", + "postalCode": "10001", + "region": "New York", "salutation": undefined, - "state": undefined, - "streetName": "George Street", - "streetNumber": "42", + "state": "New York", + "streetName": "Broadway", + "streetNumber": "123", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.ts index e7dab72af..b403412b4 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/eagle-heavy-lift-technologies-inc-us-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .michaelWilliams() .build(); -const address = AddressDraft.presets.sampleDataB2B.michaelWilliamsAddress(); +const address = + AddressDraft.presets.sampleDataB2B.eagleHeavyLiftTechnologiesIncUsNy1Address(); const yy123Qr01 = ProductVariantDraft.presets.sampleDataB2B .yy123Qr01() @@ -54,7 +55,6 @@ const eagleHeavyLiftTechnologiesIncUsCart2 = ( .country('US') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(yy123Qr01.sku).quantity(1), LineItemDraft.presets.empty().sku(yy123Qr02.sku).quantity(1), diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.spec.ts index c3ff23a3f..10b8cdd73 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.spec.ts @@ -8,34 +8,7 @@ describe(`with libertyCraneSolutionsLlcUsCart1 preset`, () => { expect(libertyCraneSolutionsLlcUsCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Ava", - "id": undefined, - "key": undefined, - "lastName": "Brown", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", - "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -104,29 +77,29 @@ describe(`with libertyCraneSolutionsLlcUsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", + "apartment": "456", + "building": "C", + "city": "Raleigh", + "company": "Liberty Crane Solutions LLC NC", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Ava", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Brown", + "key": "liberty-crane-solutions-llc-us-nc-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", + "postalCode": "27601", + "region": "North Carolina", "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", + "state": "North Carolina", + "streetName": "Main Street", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with libertyCraneSolutionsLlcUsCart1 preset`, () => { expect(libertyCraneSolutionsLlcUsCart1PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Ava", - "id": undefined, - "key": undefined, - "lastName": "Brown", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", - "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -248,29 +194,29 @@ describe(`with libertyCraneSolutionsLlcUsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", + "apartment": "456", + "building": "C", + "city": "Raleigh", + "company": "Liberty Crane Solutions LLC NC", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Ava", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Brown", + "key": "liberty-crane-solutions-llc-us-nc-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", + "postalCode": "27601", + "region": "North Carolina", "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", + "state": "North Carolina", + "streetName": "Main Street", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.ts index af04540cd..b8d447278 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .avaBrown() .build(); -const address = AddressDraft.presets.sampleDataB2B.avaBrownAddress(); +const address = + AddressDraft.presets.sampleDataB2B.libertyCraneSolutionsLlcUsNc1Address(); const fff456St01 = ProductVariantDraft.presets.sampleDataB2B .fff456St01() @@ -54,7 +55,6 @@ const libertyCraneSolutionsLlcUsCart1 = ( .country('US') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(fff456St01.sku).quantity(1), LineItemDraft.presets.empty().sku(fff456St02.sku).quantity(1), diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.spec.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.spec.ts index fb380c3ee..3e878f808 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.spec.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.spec.ts @@ -8,34 +8,7 @@ describe(`with libertyCraneSolutionsLlcUsCart2 preset`, () => { expect(libertyCraneSolutionsLlcUsCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Ava", - "id": undefined, - "key": undefined, - "lastName": "Brown", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", - "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -104,29 +77,29 @@ describe(`with libertyCraneSolutionsLlcUsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", + "apartment": "456", + "building": "C", + "city": "Raleigh", + "company": "Liberty Crane Solutions LLC NC", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Ava", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Brown", + "key": "liberty-crane-solutions-llc-us-nc-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", + "postalCode": "27601", + "region": "North Carolina", "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", + "state": "North Carolina", + "streetName": "Main Street", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with libertyCraneSolutionsLlcUsCart2 preset`, () => { expect(libertyCraneSolutionsLlcUsCart2PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Ava", - "id": undefined, - "key": undefined, - "lastName": "Brown", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", - "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "US", "currency": "USD", @@ -248,29 +194,29 @@ describe(`with libertyCraneSolutionsLlcUsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Cardiff", - "company": undefined, - "country": "GB", + "apartment": "456", + "building": "C", + "city": "Raleigh", + "company": "Liberty Crane Solutions LLC NC", + "country": "US", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Ava", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Brown", + "key": "liberty-crane-solutions-llc-us-nc-1", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "CF10 2DL", - "region": "Wales", + "postalCode": "27601", + "region": "North Carolina", "salutation": undefined, - "state": undefined, - "streetName": "Queen Street", - "streetNumber": "72", + "state": "North Carolina", + "streetName": "Main Street", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.ts index 8023c418e..62b9f4077 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/liberty-crane-solutions-llc-us-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .avaBrown() .build(); -const address = AddressDraft.presets.sampleDataB2B.avaBrownAddress(); +const address = + AddressDraft.presets.sampleDataB2B.libertyCraneSolutionsLlcUsNc1Address(); const zz456St01 = ProductVariantDraft.presets.sampleDataB2B .zz456St01() @@ -54,7 +55,6 @@ const libertyCraneSolutionsLlcUsCart2 = ( .country('US') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(zz456St01.sku).quantity(1), LineItemDraft.presets.empty().sku(zz456St02.sku).quantity(1), 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 76ac79427..8ab1a13df 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { expect(lifttechSolutionsLtdCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "William", - "id": undefined, - "key": undefined, - "lastName": "Taylor", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", - "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "GB", "currency": "GBP", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, + "apartment": "987", + "building": "C", + "city": "London", + "company": "LiftTech Solutions Ltd", "country": "GB", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "William", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Taylor", + "key": "lifttech-solutions-ltd", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", + "postalCode": "SW1A 1AA", + "region": "England", "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", + "state": "London", + "streetName": "Baker Street", + "streetNumber": "221B", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { expect(lifttechSolutionsLtdCart1PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "William", - "id": undefined, - "key": undefined, - "lastName": "Taylor", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", - "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "GB", "currency": "GBP", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, + "apartment": "987", + "building": "C", + "city": "London", + "company": "LiftTech Solutions Ltd", "country": "GB", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "William", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Taylor", + "key": "lifttech-solutions-ltd", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", + "postalCode": "SW1A 1AA", + "region": "England", "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", + "state": "London", + "streetName": "Baker Street", + "streetNumber": "221B", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.ts index 438316e0e..15509b95c 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .williamTaylor() .build(); -const address = AddressDraft.presets.sampleDataB2B.williamTaylorAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdAddress(); const ggg789Uv01 = ProductVariantDraft.presets.sampleDataB2B .ggg789Uv01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdCart1 = (customerId?: string): TCartDraftBuilder => .country('GB') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(ggg789Uv01.sku).quantity(1), LineItemDraft.presets.empty().sku(ggg789Uv02.sku).quantity(1), 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 e171d6252..629bea247 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { expect(lifttechSolutionsLtdCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "William", - "id": undefined, - "key": undefined, - "lastName": "Taylor", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", - "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "GB", "currency": "GBP", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, + "apartment": "987", + "building": "C", + "city": "London", + "company": "LiftTech Solutions Ltd", "country": "GB", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "William", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Taylor", + "key": "lifttech-solutions-ltd", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", + "postalCode": "SW1A 1AA", + "region": "England", "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", + "state": "London", + "streetName": "Baker Street", + "streetNumber": "221B", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { expect(lifttechSolutionsLtdCart2PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, - "country": "GB", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "William", - "id": undefined, - "key": undefined, - "lastName": "Taylor", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", - "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "GB", "currency": "GBP", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Liverpool", - "company": undefined, + "apartment": "987", + "building": "C", + "city": "London", + "company": "LiftTech Solutions Ltd", "country": "GB", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "William", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Taylor", + "key": "lifttech-solutions-ltd", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "L1 5AS", - "region": "Merseyside", + "postalCode": "SW1A 1AA", + "region": "England", "salutation": undefined, - "state": undefined, - "streetName": "Duke Street", - "streetNumber": "32", + "state": "London", + "streetName": "Baker Street", + "streetNumber": "221B", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.ts index 68ba84b69..f5b523129 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .williamTaylor() .build(); -const address = AddressDraft.presets.sampleDataB2B.williamTaylorAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdAddress(); const aaa789Uv01 = ProductVariantDraft.presets.sampleDataB2B .aaa789Uv01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdCart2 = (customerId?: string): TCartDraftBuilder => .country('GB') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(aaa789Uv01.sku).quantity(1), LineItemDraft.presets.empty().sku(aaa789Uv02.sku).quantity(1), 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 e9964b3e6..b890486b9 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { expect(lifttechSolutionsLtdDeCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Berlin", - "company": undefined, - "country": "DE", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sophie", - "id": undefined, - "key": undefined, - "lastName": "Müller", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "10115", - "region": undefined, - "salutation": undefined, - "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "DE", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, + "apartment": "654", + "building": "D", "city": "Berlin", - "company": undefined, + "company": "LiftTech Solutions Ltd DE", "country": "DE", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sophie", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Müller", + "key": "lifttech-solutions-ltd-de", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "10115", - "region": undefined, + "postalCode": "12345", + "region": "Brandenburg", "salutation": undefined, "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", + "streetName": "Hauptstraße", + "streetNumber": "456", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { expect(lifttechSolutionsLtdDeCart1PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Berlin", - "company": undefined, - "country": "DE", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sophie", - "id": undefined, - "key": undefined, - "lastName": "Müller", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "10115", - "region": undefined, - "salutation": undefined, - "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "DE", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdDeCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, + "apartment": "654", + "building": "D", "city": "Berlin", - "company": undefined, + "company": "LiftTech Solutions Ltd DE", "country": "DE", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sophie", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Müller", + "key": "lifttech-solutions-ltd-de", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "10115", - "region": undefined, + "postalCode": "12345", + "region": "Brandenburg", "salutation": undefined, "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", + "streetName": "Hauptstraße", + "streetNumber": "456", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.ts index 02c0a404c..bde44e7c3 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .sophieMueller() .build(); -const address = AddressDraft.presets.sampleDataB2B.sophieMuellerAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdDeAddress(); const hhh234Wx01 = ProductVariantDraft.presets.sampleDataB2B .hhh234Wx01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdDeCart1 = (customerId?: string): TCartDraftBuilder => .country('DE') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(hhh234Wx01.sku).quantity(1), LineItemDraft.presets.empty().sku(hhh234Wx02.sku).quantity(1), 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 75835e85d..f015c4ade 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { expect(lifttechSolutionsLtdDeCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Berlin", - "company": undefined, - "country": "DE", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sophie", - "id": undefined, - "key": undefined, - "lastName": "Müller", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "10115", - "region": undefined, - "salutation": undefined, - "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "DE", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, + "apartment": "654", + "building": "D", "city": "Berlin", - "company": undefined, + "company": "LiftTech Solutions Ltd DE", "country": "DE", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sophie", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Müller", + "key": "lifttech-solutions-ltd-de", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "10115", - "region": undefined, + "postalCode": "12345", + "region": "Brandenburg", "salutation": undefined, "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", + "streetName": "Hauptstraße", + "streetNumber": "456", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { expect(lifttechSolutionsLtdDeCart2PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Berlin", - "company": undefined, - "country": "DE", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sophie", - "id": undefined, - "key": undefined, - "lastName": "Müller", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "10115", - "region": undefined, - "salutation": undefined, - "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "DE", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdDeCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, + "apartment": "654", + "building": "D", "city": "Berlin", - "company": undefined, + "company": "LiftTech Solutions Ltd DE", "country": "DE", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sophie", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Müller", + "key": "lifttech-solutions-ltd-de", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "10115", - "region": undefined, + "postalCode": "12345", + "region": "Brandenburg", "salutation": undefined, "state": "Berlin", - "streetName": "Schloßstraße", - "streetNumber": "30", + "streetName": "Hauptstraße", + "streetNumber": "456", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.ts index 6777a8202..f9de76bef 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-de-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .sophieMueller() .build(); -const address = AddressDraft.presets.sampleDataB2B.sophieMuellerAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdDeAddress(); const bbb234Wx01 = ProductVariantDraft.presets.sampleDataB2B .bbb234Wx01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdDeCart2 = (customerId?: string): TCartDraftBuilder => .country('DE') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(bbb234Wx01.sku).quantity(1), LineItemDraft.presets.empty().sku(bbb234Wx02.sku).quantity(1), 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 032ff6dde..b38db3799 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { expect(lifttechSolutionsLtdEsCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, - "country": "ES", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sofía", - "id": undefined, - "key": undefined, - "lastName": "López", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", - "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "ES", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, + "apartment": "567", + "building": "F", + "city": "Madrid", + "company": "LiftTech Solutions Ltd ES", "country": "ES", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sofía", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "López", + "key": "lifttech-solutions-ltd-es", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", + "postalCode": "28013", + "region": "Community of Madrid", "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", + "state": "Community of Madrid", + "streetName": "Calle Mayor", + "streetNumber": "101", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { expect(lifttechSolutionsLtdEsCart1PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, - "country": "ES", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sofía", - "id": undefined, - "key": undefined, - "lastName": "López", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", - "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "ES", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdEsCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, + "apartment": "567", + "building": "F", + "city": "Madrid", + "company": "LiftTech Solutions Ltd ES", "country": "ES", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sofía", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "López", + "key": "lifttech-solutions-ltd-es", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", + "postalCode": "28013", + "region": "Community of Madrid", "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", + "state": "Community of Madrid", + "streetName": "Calle Mayor", + "streetNumber": "101", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.ts index 4e8d1c1a8..aff96f490 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .sofiaLopez() .build(); -const address = AddressDraft.presets.sampleDataB2B.sofiaLopezAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdEsAddress(); const jjj890Op01 = ProductVariantDraft.presets.sampleDataB2B .jjj890Op01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdEsCart1 = (customerId?: string): TCartDraftBuilder => .country('ES') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(jjj890Op01.sku).quantity(1), LineItemDraft.presets.empty().sku(jjj890Op02.sku).quantity(1), 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 73ad5340c..52ed9bbc5 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { expect(lifttechSolutionsLtdEsCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, - "country": "ES", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sofía", - "id": undefined, - "key": undefined, - "lastName": "López", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", - "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "ES", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, + "apartment": "567", + "building": "F", + "city": "Madrid", + "company": "LiftTech Solutions Ltd ES", "country": "ES", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sofía", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "López", + "key": "lifttech-solutions-ltd-es", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", + "postalCode": "28013", + "region": "Community of Madrid", "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", + "state": "Community of Madrid", + "streetName": "Calle Mayor", + "streetNumber": "101", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { expect(lifttechSolutionsLtdEsCart2PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, - "country": "ES", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Sofía", - "id": undefined, - "key": undefined, - "lastName": "López", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", - "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "ES", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdEsCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Barcelona", - "company": undefined, + "apartment": "567", + "building": "F", + "city": "Madrid", + "company": "LiftTech Solutions Ltd ES", "country": "ES", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Sofía", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "López", + "key": "lifttech-solutions-ltd-es", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "08002", - "region": "Catalunya", + "postalCode": "28013", + "region": "Community of Madrid", "salutation": undefined, - "state": undefined, - "streetName": "La Rambla", - "streetNumber": "91", + "state": "Community of Madrid", + "streetName": "Calle Mayor", + "streetNumber": "101", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.ts index 8945f17b6..943b70185 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-es-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .sofiaLopez() .build(); -const address = AddressDraft.presets.sampleDataB2B.sofiaLopezAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdEsAddress(); const ddd890Op01 = ProductVariantDraft.presets.sampleDataB2B .ddd890Op01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdEsCart2 = (customerId?: string): TCartDraftBuilder => .country('ES') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(ddd890Op01.sku).quantity(1), LineItemDraft.presets.empty().sku(ddd890Op02.sku).quantity(1), 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 ff1d159e7..3fa04f7dd 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { expect(lifttechSolutionsLtdFrCart1Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, - "country": "FR", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Camille", - "id": undefined, - "key": undefined, - "lastName": "Lefèvre", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", - "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "FR", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, + "apartment": "321", + "building": "E", + "city": "Paris", + "company": "LiftTech Solutions Ltd FR", "country": "FR", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Camille", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Lefèvre", + "key": "lifttech-solutions-ltd-fr", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", + "postalCode": "75002", + "region": "Île-de-France", "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", + "state": "Île-de-France", + "streetName": "Rue de la Paix", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { expect(lifttechSolutionsLtdFrCart1PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, - "country": "FR", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Camille", - "id": undefined, - "key": undefined, - "lastName": "Lefèvre", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", - "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "FR", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdFrCart1 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, + "apartment": "321", + "building": "E", + "city": "Paris", + "company": "LiftTech Solutions Ltd FR", "country": "FR", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Camille", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Lefèvre", + "key": "lifttech-solutions-ltd-fr", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", + "postalCode": "75002", + "region": "Île-de-France", "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", + "state": "Île-de-France", + "streetName": "Rue de la Paix", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.ts index 315ca3532..a1a794274 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-1.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .camilleLefevre() .build(); -const address = AddressDraft.presets.sampleDataB2B.camilleLefevreAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdFrAddress(); const iii567Yz01 = ProductVariantDraft.presets.sampleDataB2B .iii567Yz01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdFrCart1 = (customerId?: string): TCartDraftBuilder => .country('FR') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(iii567Yz01.sku).quantity(1), LineItemDraft.presets.empty().sku(iii567Yz02.sku).quantity(1), 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 f682a7c28..043a144de 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 @@ -8,34 +8,7 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { expect(lifttechSolutionsLtdFrCart2Preset).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, - "country": "FR", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Camille", - "id": undefined, - "key": undefined, - "lastName": "Lefèvre", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", - "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "FR", "currency": "EUR", @@ -104,29 +77,29 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, + "apartment": "321", + "building": "E", + "city": "Paris", + "company": "LiftTech Solutions Ltd FR", "country": "FR", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Camille", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Lefèvre", + "key": "lifttech-solutions-ltd-fr", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", + "postalCode": "75002", + "region": "Île-de-France", "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", + "state": "Île-de-France", + "streetName": "Rue de la Paix", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { @@ -152,34 +125,7 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { expect(lifttechSolutionsLtdFrCart2PresetGraphql).toMatchInlineSnapshot(` { "anonymousId": undefined, - "billingAddress": { - "additionalAddressInfo": undefined, - "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, - "country": "FR", - "custom": undefined, - "department": undefined, - "email": undefined, - "externalId": undefined, - "fax": undefined, - "firstName": "Camille", - "id": undefined, - "key": undefined, - "lastName": "Lefèvre", - "mobile": undefined, - "pOBox": undefined, - "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", - "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", - "title": undefined, - }, + "billingAddress": undefined, "businessUnit": undefined, "country": "FR", "currency": "EUR", @@ -248,29 +194,29 @@ describe(`with lifttechSolutionsLtdFrCart2 preset`, () => { "shippingAddress": { "additionalAddressInfo": undefined, "additionalStreetInfo": undefined, - "apartment": undefined, - "building": undefined, - "city": "Nice", - "company": undefined, + "apartment": "321", + "building": "E", + "city": "Paris", + "company": "LiftTech Solutions Ltd FR", "country": "FR", "custom": undefined, "department": undefined, "email": undefined, "externalId": undefined, "fax": undefined, - "firstName": "Camille", + "firstName": undefined, "id": undefined, - "key": undefined, - "lastName": "Lefèvre", + "key": "lifttech-solutions-ltd-fr", + "lastName": undefined, "mobile": undefined, "pOBox": undefined, "phone": undefined, - "postalCode": "06000", - "region": "Provence-Alpes-Côte d'Azur", + "postalCode": "75002", + "region": "Île-de-France", "salutation": undefined, - "state": undefined, - "streetName": "Avenue Jean Médecin", - "streetNumber": "22", + "state": "Île-de-France", + "streetName": "Rue de la Paix", + "streetNumber": "789", "title": undefined, }, "shippingMethod": { diff --git a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.ts b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.ts index 1e15e2f6d..10c91777c 100644 --- a/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.ts +++ b/models/cart/src/cart/cart-draft/presets/sample-data-b2b/lifttech-solutions-ltd-fr-cart-2.ts @@ -22,7 +22,8 @@ import type { TCartDraftBuilder } from '../../../types'; const customer = CustomerDraft.presets.sampleDataB2B .camilleLefevre() .build(); -const address = AddressDraft.presets.sampleDataB2B.camilleLefevreAddress(); +const address = + AddressDraft.presets.sampleDataB2B.lifttechSolutionsLtdFrAddress(); const ccc567Yz01 = ProductVariantDraft.presets.sampleDataB2B .ccc567Yz01() @@ -50,7 +51,6 @@ const lifttechSolutionsLtdFrCart2 = (customerId?: string): TCartDraftBuilder => .country('FR') .origin(origin.Customer) .shippingAddress(address) - .billingAddress(address) .lineItems([ LineItemDraft.presets.empty().sku(ccc567Yz01.sku).quantity(1), LineItemDraft.presets.empty().sku(ccc567Yz02.sku).quantity(1),